需要更改root密码

时间:2019-11-07 07:18:37

标签: mysql passwords

无法更改mysql(mariadb)的root密码。

我已经尝试过: 停止服务,以以下方式启动: mysqld_safe --skip-grant-tables & 尝试了网络上的各种更新行,包括: update user set password=PASSWORD('newpassword') where user='root';update user set authentication_string=password('newpassword') where user='root'; 以及update user set password=PASSWORD('newpassword') where user='root';update user set password=('newpassword') where user='root;,并在每个之后:flush privileges;

没有代码

无论我如何尝试,root密码均不起作用。如何实际上进行更改?

1 个答案:

答案 0 :(得分:0)

在您的本地主机phpmyadmin中,转到Privileges -> edit privileges ->change password

希望对您有帮助