ユーザー権限の確認方法
show grants for [username]@[servername];
mysql> show grants for ‘root’@’localhost’;
+———————————————————————+
| Grants for root@localhost                                           |
+———————————————————————+
| GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ WITH GRANT OPTION |
| GRANT PROXY ON ”@” TO ‘root’@’localhost’ WITH GRANT OPTION        |
+———————————————————————+
2 rows in set (0.05 sec)
mysql> show grants
    -> ;
+———————————————————————+
| Grants for root@localhost                                           |
+———————————————————————+
| GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ WITH GRANT OPTION |
| GRANT PROXY ON ”@” TO ‘root’@’localhost’ WITH GRANT OPTION        |
+———————————————————————+
2 rows in set (0.00 sec)
なるほどねー
 
					 
