发表于: DB/ES | 作者: | 日期: 2017/7/21 12:07
标签:

1:在终端下:mysql -V。 以下是代码片段:

[root@test ~]# mysql -V
mysql Ver 14.14 Distrib 5.6.25, for linux-glibc2.5 (x86_64) using EditLine wrapper


2:在mysql中:mysql> status;

mysql> status;
————–
mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
Connection id: 416
SSL: Not in use
Current pager: stdout
Using outfile: ”
Using delimiter: ;
Server version: 3.23.56-log
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /tmp/mysql_3311.sock
Uptime: 62 days 21 hours 21 min 57 sec
   Threads: 1 Questions: 584402560 Slow queries: 424 Opens: 59664208 Flush tables: 1 Open tables: 64 Queries per second avg: 107.551

3:在help里面查找

[root@test ~]# mysql –help
mysql Ver 14.14 Distrib 5.6.25, for linux-glibc2.5 (x86_64) using EditLine wrapper
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

内容有点多,可第一行就可以了。
4:使用mysql的函数

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

: https://blog.darkmi.com/2017/07/21/3955.html

本文相关评论 - 1条评论都没有呢
Post a comment now » 本文目前不可评论

No comments yet.

Sorry, the comment form is closed at this time.