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

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

 

问题描述:连接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前面板耳机插孔无反应的解决方案
  • 关于桥梁工程卸落支架顺序说法错误的是( )。
  • 在OSI(Open System Interconnet,OSI)7层协议中,()有 IGMP 协议。
  • In approximating costs, the estimator considers the possible causes of variation of the cost estimates, including   ( )。
  • 【201305-单选23】下列关于高斯—克吕格投影说法错误的是:
  • C#获得光标在屏幕中的位置并在位置处输入指定文字
  • UE5小技巧:GPU崩溃错误提示的解决办法
  • WinForm界面布局控件"WeifenLuo.WinFormsUI.Docking"的使用
  • 关于城镇供热直埋保温接头的说法,错误的是( )。
  • 关于处理个人信息,下列说法错误的是____。

© CopyRight 2014~2024 薄学网.