mysql怎么查看当前登录用户

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weiganliu/article/details/83112440

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

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

展开阅读全文

没有更多推荐了,返回首页