无法更改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密码均不起作用。如何实际上进行更改?
答案 0 :(得分:0)
在您的本地主机phpmyadmin中,转到Privileges -> edit privileges ->change password
。
希望对您有帮助