Linux环境下安装mysql8以后没有密码如何添加/修改
use mysql alter user'root'@'localhost' identified by '新密码'; alter user'root'@'localhost' identified with mysql_native_password by '新密码';
如果生活变得难以忍受,我们会想到改变我们的环境。
use mysql alter user'root'@'localhost' identified by '新密码'; alter user'root'@'localhost' identified with mysql_native_password by '新密码';