标签:div network oca use table root密码 技术 pre upd
ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: NO)
解决方法
原密码为空,更改root密码
1 # 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
原文地址:http://www.cnblogs.com/ssooking/p/6385783.html