发布网友 发布时间:2022-04-20 13:59
共3个回答
懂视网 时间:2022-05-01 02:23
终端下直接使用mysql命令[root@localhost lib]# mysql -V mysql Ver 15.1 Distrib 5.5.47-MariaDB, for Linux (x86_) using readline 5.1
2、同样在终端使用命令
[root@localhost lib]# mysql --help | grep Distrib mysql Ver 15.1 Distrib 5.5.47-MariaDB, for Linux (x86_) using readline 5.1
3、登陆mysql之后使用内置命令
MariaDB [(none)]> select version(); +----------------+ | version() | +----------------+ | 5.5.47-MariaDB | +----------------+ 1 row in set (0.00 sec)
4、使用内置命令
MariaDB [(none)]> status; -------------- mysql Ver 15.1 Distrib 5.5.47-MariaDB, for Linux (x86_) using readline 5.1 Connection id: 4 Current database: Current user: root@localhost SSL: Not in use Current pager: stdout Using outfile: ‘‘ Using delimiter: ; Server: MariaDB Server version: 5.5.47-MariaDB MariaDB Server Protocol version: 10 Connection: Localhost via UNIX socket Server characterset: latin1 Db characterset: latin1 Client characterset: utf8 Conn. characterset: utf8 UNIX socket: /var/lib/mysql/mysql.sock Uptime: 2 min 56 sec Threads: 1 Questions: 12 Slow queries: 0 Opens: 0 Flush tables: 2 Open tables: 4 Queries per second avg: 0.068
本文出自 “用心做事” 博客,请务必保留此出处http://amyhehe.blog.51cto.com/9406021/1761240
查看MySQL版本的四种方法
标签:mysql
热心网友 时间:2022-04-30 23:31
查看mysql版本的四种方法
1:在终端下:mysql -V。 以下是代码片段:
[shengting@login ~]$ mysql -V
mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
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: 596208 Flush tables: 1 Open tables: Queries per second avg: 107.551
3:在help里面查找
以下是代码片段:
[shengting@login ~]$ mysql --help | grep Distrib
mysql Ver 14.7 Distrib 4.1.10a, for redhat-linux-gnu (i686)
4:使用mysql的函数
以下是代码片段:
mysql> select version();
+-------------+
| version() |
+-------------+
| 3.23.56-log |
+-------------+
1 row in set (0.00 sec)
热心网友 时间:2022-05-01 00:49
1、status;
2、select version();