Mysql之查看数据库版本

 

Mysql版本:

 

登入数据库的时候:

select @@version;

select version();

mysql> select @@version;
+-----------+
| @@version |
+-----------+
| 5.5.53    |
+-----------+
1 row in set (0.00 sec)

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

status;

mysql> status;
--------------
mysql  Ver 14.14 Distrib 5.5.53, for Win32 (AMD64)

Connection id:          11
Current database:       mysql
Current user:           root@localhost
SSL:                    Not in use
Using delimiter:        ;
Server version:         5.5.53 MySQL Community Server (GPL)
Protocol version:       10
Connection:             localhost via TCP/IP
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8
TCP port:               3306
Uptime:                 3 hours 3 min 4 sec

Threads: 3  Questions: 240  Slow queries: 0  Opens: 49  Flush tables: 1  Open tables: 0  Queries per second avg: 0.021
--------------

 

 

未登入数据库的时候:

mysql -V

mysql --version

D:\MySQL\bin>mysql -V
mysql  Ver 14.14 Distrib 5.5.53, for Win32 (AMD64)

D:\MySQL\bin>mysql --version
mysql  Ver 14.14 Distrib 5.5.53, for Win32 (AMD64)

mysql --help | findstr Distrib    //windows终端

mysql --help | grep Distrib    //linux终端

D:\phpStudy\MySQL\bin>mysql --help | findstr Distrib
mysql  Ver 14.14 Distrib 5.5.53, for Win32 (AMD64)

 

转载于:https://www.cnblogs.com/captainRoB/p/7163871.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值