目次
概要
MySQLでデータベースを作成しようとすると、--skip-name-resolveとエラー。 なんとか解決できたので、その時の内容を記す。
環境
- Ubuntu 14.04
- MySQL 5.7.19
エラー内容
GRANT ALL ON test_database.* TO user_name@localhost
を実行すると、
Query OK, 0 rows affected, 1 warning (0.00 sec)と表示され、失敗した。
SHOW WARNINGS\G
でエラー内容を探すと、
MySQL is started in --skip-name-resolve mode; you must restart it without this switch for this grant to workと表示された。
このエラーが出るときは名前解決が行われていないときに出現するという情報を見たので、localhostではなくIPに変更してコマンドを実行。
GRANT ALL ON test_database.* TO user_name@127.0.0.1
Query OK, 0 rows affected (0.00 sec)できらっぁ!
参考
おすすめの記事
最新の記事
よく読まれている記事
タグから探す
- javascript130
- typescript67
- linux54
- node.js54
- amazon-aws48
- 画像処理48
- アルゴリズム37
- canvas35
- html529
- 画像処理100本ノック27
- php24
- centos24
- python22
- 競技プログラミング21
- mac21
- mysql20
- opencv17
- 雑談16
- 機械学習16
- docker16
- wordpress15
- atcoder14
- apache12
- データベース12
- amazon-s312
- red-hat12
- prisma12
- ubuntu11
- github10
- git10
- react10
- mariadb10
- vue.js9
- next.js9
- aws-cdk9
- css38
- 可視化8
- 小ネタ8
- nestjs8
- amazon-lightsail7
- ブログ6
- cms6
- oracle6
- perl6
- gitlab6
- iam5
- amazon-ec25
- 資格試験5
- aws-amplify5
- curl4