pyList

出现 Access denied for user 'root'@'localhost' (using password: NO) 的解决方法

在备份数据时出现标题的错误

mysqldump -u root -p123456 dataname > outfile_name.sql

Access denied for user 'root'@'localhost' (using password: NO)

解决办法:登录mysql

mysql -uroot -p

在mysql 里面实行:

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
FLUSH PRIVILEGES; 
本文网址: https://pylist.com/t/1441418840 (转载注明出处)
如果你有任何建议或疑问可以在下面 留言
Be the first to comment!
Captcha image
Relative Articles