株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

mysql8で変わった事かもしれない

mysql> CRATE USER 'test'@'%' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.03 sec)

mysql> GRANT all ON *.* TO 'test'@'%';
ERROR 1045 (28000): Access denied for user 'admin'@'%' (using password: YES)

データベースを「`%`」で指定する

mysql> GRANT all ON `%`.* TO 'test'@'%';
Query OK, 0 rows affected (0.02 sec)

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)