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

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

 

问题描述:连接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)

—— 完 ——
  • You have an error in your SQL syntax; check the manual that corresponds to your MySQL
  • Android系统是一种以Linux为基础的开放源代码操作系统,主要用于便携智能终端设备。Android采用分层的系统架构,其从高层到低层分别是(  )。
  • 关于给水压力管道水压试验的说法,错误的是( )。
  • Windows10安装.NET 3.5报错 错误代码0X80070005 的解决方案
  • 单例模式(Singleton Pattern)
  • 关于砌体结构施工的做法,错误的是( )。
  • 关于生物―心理―社会医学模式,下述提法中错误的是()
  • 智能自动化测试技术:自愈(Self-Healing)技术
  • 如何用WinHTTrack离线保存网站及网站内的链接
  • Unity报错:Assertion failed on expression: ‘m_ErrorCode == MDB_MAP_RESIZED || !HasAbortingErrors()‘

© CopyRight 2014~2024 薄学网.