时间:2021-07-01 10:21:17 帮助过:4人阅读
use mysql;
update user set authentication_string=PASSWORD("密码") where user=‘root‘; update user set plugin="mysql_native_password"; flush privileges;quit;
/etc/init.d/mysql restart; mysql -u root -p 密码;
ubuntu mysql5.7 解决不用密码也能登录
标签:string 用户 sql 密码 str root tar password use