返回顶部

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

use mysql

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

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

 

posted @ 2020-06-09 12:17  可乐葱花  阅读(492)  评论(0编辑  收藏  举报