mysql> GRANT USAGE
??? -> ON EXAMPLE.*
??? -> TO
webuser@localhost;
ERROR 1133 (42000): Can't find any matching row in the user table
錯誤的真正原因是 沒有設置用戶的密碼。
正確的寫法是:
mysql> GRANT USAGE
??? -> ON EXAMPLE.*
??? -> TO
webuser@localhost??? -> identified by 'webuser';
Query OK, 0 rows affected (0.00 sec)