Linux下mysql新增用户无法登陆报错Using a password on the command line interface can be insecure.
在mysql的root用户可以登陆。但是新增了一个用户怎么都登陆不上,一直报错Using a password on the command line interface can be insecure.
解决方法:mysql可以登陆的情况
增加普通用户后,执行:
mysql> use mysql
mysql> delete from user where user='';
mysql> flush privileges;
意思是删除匿名用户,就可以正常登
原创
2021-06-10 09:36:48 ·
549 阅读 ·
0 评论