首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

Centos7解决MySQL登录ERROR 1045 (28000): Access denied for user ‘‘@‘localhost‘ (using

登录数据库时,发现数据库连接不上,报错如下: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passwor:...MySQL mysql -u root -p 复制代码 出现密码输入时,不用输入直接按回车,就可以不用密码就能登录修改密码 使用mysql数据库 use mysql; 复制代码 mysql> update user...set password=password("newpassword") where user="root"; 复制代码 如果报错: ERROR 1054(42S22) Unknown column...field list' 原因: 5.7版本下的mysql数据库下已经没有password这个字段了,password字段改成了authentication_string mysql> update user...set authentication_string=password("newpassword") where user="root"; #刷新MySQL权限相关的表 mysql> flush

4.3K30
领券