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)