mysql怎么查看用户名?


当前第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》频道 >>


数据库系统概念 第6版
书籍

数据库系统概念 第6版

机械工业出版社

本书主要讲述了数据模型、基于对象的数据库和XML、数据存储和查询、事务管理、体系结构等方面的内容。



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...