MYSQL连接Error (1133): Can’t find any matching row in the user table错误的解决办法

2020-11-05 14:30:29 码农 2915

 

问题描述:连接mysql数据库报错如下:Error (1133): Can’t find any matching row in the user table

解决办法:

mysql> grant all on *.* to 'username'@'%' identified by 'password';
mysql> flush privileges;

*.*可以换成你要访问具体哪个数据库和具体哪张表,username和password换成对应的账号的密码

发生这一错误的原因是在变更了mysql.user表之后,没有使用FLUSH PRIVILEGES命令来更新权限表(grant tables)

—— 完 ——
  • 下列有关职业怀疑的说法中,错误的是( )。
  • 钻孔灌注桩施工过程中,防止扩孔和坍孔的措施错误的是( )。
  • Win10无法查看局域网共享计算机及打印机的4种解决方法
  • 关于水泥稳定中粒土基层的说法,错误的是( )。
  • unity2021在vscode中没有提示的解决办法
  • ()helps to determine which individual project risks or other sources of uncertainty have the most potential impact on project outcomes
  • Windows10系统添加照片查看器程序
  • Win10禁用AppX Deployment Service(AppXSVC)服务方法(解决磁盘占用高问题)
  • MySQL临时表的使用
  • 下列有关财务报表审计中对法律法规的考虑的说法中,错误的是

© CopyRight 2014~2024 薄学网.