1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > MySQL安装错误——Access denied for user 'root'@'localhost' (using password: YES)

MySQL安装错误——Access denied for user 'root'@'localhost' (using password: YES)

时间:2020-09-16 05:14:01

相关推荐

MySQL安装错误——Access denied for user 'root'@'localhost' (using password: YES)

错误:

[root@VM_205_38_centos home]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

解决办法:

CentOS7环境

service mysqld stop 关闭数据库

修改/etc/f文件,在最后一行加上“skip-grant-tables”,保存并关闭文件。

service mysqld start 开启数据库

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。