連接配接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;
*.*可以換成你要通路具體哪個資料庫和具體哪張表
發生這一錯誤的原因是在變更了mysql.user表之後,沒有使用FLUSH PRIVILEGES指令來更新權限表(grant tables)
本文轉自 jvrmusic520 51CTO部落格,原文連結:http://blog.51cto.com/linuxtech/1732303