mysql登录不需要输入密码解决方法

use mysql;   

update user set authentication_string=PASSWORD("密码") where user='root';

update user set plugin="mysql_native_password";

flush privileges;

quit; 

转载于https://www.jianshu.com/p/37f823e45496

posted @ 2020-09-18 11:02  执子人  阅读(427)  评论(0)    收藏  举报