2013年5月24日金曜日

ERROR 1133 (42000): Can't find any matching row in the user table

「10日でおぼえるLinuxサーバー入門教室」より(centos6.3環境)
MySQL上で新規作成したユーザーに対してパスワード設定を試みると、表題のエラー発生。
実施ページはP283

手順
#mysql  -u root -p

mysql> create database WP_DB01;

mysql>create user wp_user;

mysql>set password for wp_user@localhost=password('12345');
ERROR 1133 (42000): Can't find any matching row in the user table

以下のコマンドを実行して現象改善。
mysql> grant all on *.* to wp_user@localhost identified by '12345';
Query OK, 0 rows affected (0.00 sec)

mysql> set password for wp_user@localhost=password('12345');
Query OK, 0 rows affected (0.00 sec)

0 件のコメント:

コメントを投稿