MySql: 查看当前登录用户,当前数据库

mysql> select user();
+----------------+
| user() |
+----------------+
| root@localhost |
+----------------+
1 row in set (0.00 sec)

 

mysql> select database();
+--------------------+
| database() |
+--------------------+
| information_schema |
+--------------------+
1 row in set (0.00 sec)

posted @ 2017-01-05 17:57  alxe_yu  阅读(35851)  评论(0编辑  收藏  举报