centos 上安装mysql密码修改后还是不能连接出现错误:
ERROR 1142 (42000): SELECT command denied to user ''@'localhost' for table 'user'

 

 

解决方法:
1.退出mysql
mysql> quit;
Bye
 
2、执行下面语句
[root@localhost 桌面]# mysqld_safe --skip-grant-table
3、删除空用户
 mysql -uroot  mysql 
delete from user where user='';
删除后就可以了;

 

相关文章:

  • 2021-05-03
  • 2022-12-23
  • 2021-07-05
  • 2022-01-19
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
猜你喜欢
  • 2021-10-28
  • 2021-09-08
  • 2022-12-23
  • 2021-05-01
  • 2022-12-23
  • 2021-09-08
  • 2021-07-28
相关资源
相似解决方案