LinuxEye - Linux系统教程

LinuxEye - Linux系统教程

当前位置: 主页 > 数据库 >

MySQL版本查看

时间:2013-05-02 21:11来源:未知 编辑:admin 点击:
[root@li592-133 ~]# mysql -Vmysql Ver 14.14 Distrib 5.5.29, for Linux (i686) using EditLine wrapper[root@li592-133 ~]# mysql -uroot -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 257129S
[root@li592-133 ~]# mysql -V
mysql  Ver 14.14 Distrib 5.5.29, for Linux (i686) using  EditLine wrapper
[root@li592-133 ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 257129
Server version: 5.5.29-log Source distribution

Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> status
--------------
mysql  Ver 14.14 Distrib 5.5.29, for Linux (i686) using  EditLine wrapper

Connection id:          257129
Current database:
Current user:           root@localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.5.29-log Source distribution
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8
UNIX socket:            /data/mysql/mysql.sock
Uptime:                 41 days 5 hours 44 min 31 sec

Threads: 8  Questions: 7474388  Slow queries: 0  Opens: 110150  Flush tables: 1  Open tables: 64  Queries per second avg: 2.097
--------------

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

转载请保留固定链接: https://linuxeye.com/database/1555.html

------分隔线----------------------------
标签:mysql
栏目列表
推荐内容