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

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

 

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

—— 完 ——
  • Win11系统onedrive登陆不上 ,错误代码0x8004d
  • UE5内置Bridge打不开解决办法
  • Vue.js Quasar 错误:找不到模块 ‘ajv/dist/compile/codegen’
  • 对于集团财务报表审计,下列有关组成部分重要性的说法中,错误的
  • Visual Studio 2019 winfrom生成安装包时提示缺少vs_shell.msi,Visual Studio 2008 shell(Integrated)-CHN这样解决
  • 关于小导管注浆加湿技术的说法,错误的是( )。
  • 【201305-多选51】对于不规则三角网(TIN)的特点,下列说法正确的是:
  • 网络不通怎么办,如何用Ping排查网络故障
  • HTTP 错误 500.22 - Internal Server Error 检测到在集成的托管管道模式下不适用的 ASP.NET 设置。
  • The parties to government procurement refer to the principal entities of all kinds

© CopyRight 2014~2024 薄学网.