当前第2页 返回上一页
查看数据库列表:
1 2 3 4 5 6 7 8 9 10 11 12 | mysql> show databases;
+
| Database |
+
| information_schema |
| mysql |
| performance_schema |
| test |
+
rows in set (0.00 sec)
mysql>
|
查看用户状态:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select host, user from mysql. user ;
+
| host | user |
+
| 127.0.0.1 | root |
| ::1 | root |
| localhost | |
| localhost | root |
| server.gao | |
| server.gao | root |
+
rows in set (0.00 sec)
mysql>
|
以上就是mysql怎么查看用户名?的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
mysql 如何转 int
数据库删除语句delete有什么用?
怎么使用navicat连接数据库
mysql创建表命令是哪句
mysql常用语句简介
了解 mysql基于gtid的复制模式
mysql中的int(11)代表什么
在mysql中的explain中的using where和using index
绿色版 mysql 安装配置
mysql数据库备份及恢复命令 mysqldump,source的用法
更多相关阅读请进入《mysql》频道 >>
机械工业出版社
本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。
转载请注明出处:木庄网络博客 » mysql怎么查看用户名?