当前位置:Gxlcms >
数据库问题 >
Mysql Access denied for user 'root'
Mysql Access denied for user 'root'
时间:2021-07-01 10:21:17
帮助过:28人阅读
# service mysql stop
2 # mysqld_safe --user=mysql --skip-grant-tables --skip-networking
3
4 # mysql -
u root mysql
5 mysql> update user set password=password(
‘新密码‘) where user=
‘root‘;
6 mysql>
flush privileges;
7 mysql>
quit
8
9 # service mysql restart
10 # mysql -uroot -
p
11 Enter password: <输入新设的密码>
Mysql Access denied for user 'root'
标签:div network oca use table root密码 技术 pre upd