Linux环境下安装mysql8以后没有密码如何添加/修改

use mysql

alter user‘root‘@‘localhost‘ identified by ‘新密码‘; 

alter user‘root‘@‘localhost‘ identified with mysql_native_password by ‘新密码‘;

相关推荐