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

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

 

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

—— 完 ——
  • 备份mysql数据库报outfile disabled 错误
  • WinCC:如何触发计算机扬声器的声音?
  • ()is not included in the main contents of the operation and maintenance of the  information system.
  • (2022-09事业单位联考A类)20、关于化妆品中的化学常识,下列说法错误的是()。
  • Docker启动报错:Docker Desktop - WSL distro terminated abruptly
  • 如何判断 nginx 的请求 URL 是否包含指定的参数
  • Docker: wsl update failed: update failed: updating wsl: exit code: 4294967295: running WSL command wsl.exe
  • 采用单价合同指标时,对于投标书中明显的数字计算错误,业主有权
  • 卸载sql server2012时出现:为INSTALLSHAREDWOWDIR参数指定的目录无效
  • Windows系统的用户管理配置中,有多项安全设置,其中密码和帐户锁定安全选项设置属于( )。

© CopyRight 2014~2024 薄学网.