こんばんわ、木村です。
(snip)
> mysql> grant all privileges on *.* to ( ******)@localhost identified by
> '(*************)';
> ERROR 1064 (42000): You have an error in your SQL syntax; check the
> manual that corresponds to your MySQL server version for the right
> syntax to use near '(******)@localhost identified by '(*************)''
> at line 1
> mysql>
参照している記事の(ユーザ名)とか(パスワード)は、ユーザ名とパスワードに()
をつけるという意味ではなくて、それぞれを本来のユーザ名、パスワードに置き
換えてください。例えば、以下の例で一発目は不成功ですが、二発目は成功しま
す。ユーザ名、パスワードをそれぞれkimuraにする例です。
mysql> grant all privileges on *.* to (kimura)@localhost identified by
'(kimura)'; -- 失敗例
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your
MySQL server version for the right syntax to use near
'(kimura)@localhost identified by '(kimura)''
at line 1
mysql> grant all privileges on *.* to kimura@localhost identified by
'kimura'; -- 成功例
Query OK, 0 rows affected (0.47 sec)
mysql> select user from mysql.user where user='kimura';
+--------+
| user |
+--------+
| kimura |
+--------+
1 rows in set (0.05 sec)
ではでは。