Help us understand the problem. What is going on with this article?

MySQLのSQLモードの確認とDBのユーザ設定の確認時のコマンド

よく忘れがちなコマンドのメモ。

SQLモードの確認

mysql> select @@global.sql_mode \G
*************************** 1. row ***************************
@@global.sql_mode: NO_ENGINE_SUBSTITUTION
1 row in set (0.00 sec)

Hostとユーザ設定の確認

mysql> select host, user from mysql.user;
+-----------+---------------+
| host      | user          |
+-----------+---------------+
| %         | dev01         |
| %         | dev02         |
| localhost | development   |
| localhost | mysql.session |
| localhost | mysql.sys     |
| localhost | root          |
+-----------+---------------+
6 rows in set (0.00 sec)

ユーザの権限確認

mysql> SHOW GRANTS FOR 'development'@"%";
a-nishimura
フリーランスプログラマ。ブログ書いてます。フットサル好き。筋トレ好き。YouTube好き。 ブログ書いてるので良かったらそちらもご覧下さい。
https://www.wow-creators.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした