linux下查看mysql版本
来源:互联网 发布:淘宝上的古董店 编辑:程序博客网 时间:2024/05/22 10:46
1:在终端下:mysql -V。 以下是代码片段:
[shengting@login ~]$ mysql -V
mysql Ver 14.14 Distrib 5.1.49, for redhat-linux-gnu (i686) using readline 5.1
2:在mysql中:mysql> status;
mysql> status
--------------
mysql Ver 14.14 Distrib 5.1.49, for redhat-linux-gnu (i686) using readline 5.1
Connection id: 444
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.1.49 MySQL Community Server (GPL) by Remi
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 1 day 4 hours 15 min 29 sec
Threads: 3 Questions: 364 Slow queries: 0 Opens: 99 Flush tables: 1 Open tables: 23 Queries per second avg: 0.3
--------------
3:在help里面查找
以下是代码片段:
[shengting@login ~]$ mysql --help | grep Distrib
mysql Ver 14.14 Distrib 5.1.49, for redhat-linux-gnu (i686) using readline 5.1
4:使用mysql的函数
以下是代码片段:
mysql> select version();
+-------------+
| version() |
+-------------+
|'5.1.56-community' |
+-------------+
1 row in set (0.00 sec)
[shengting@login ~]$ mysql -V
mysql Ver 14.14 Distrib 5.1.49, for redhat-linux-gnu (i686) using readline 5.1
2:在mysql中:mysql> status;
mysql> status
--------------
mysql Ver 14.14 Distrib 5.1.49, for redhat-linux-gnu (i686) using readline 5.1
Connection id: 444
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.1.49 MySQL Community Server (GPL) by Remi
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 1 day 4 hours 15 min 29 sec
Threads: 3 Questions: 364 Slow queries: 0 Opens: 99 Flush tables: 1 Open tables: 23 Queries per second avg: 0.3
--------------
3:在help里面查找
以下是代码片段:
[shengting@login ~]$ mysql --help | grep Distrib
mysql Ver 14.14 Distrib 5.1.49, for redhat-linux-gnu (i686) using readline 5.1
4:使用mysql的函数
以下是代码片段:
mysql> select version();
+-------------+
| version() |
+-------------+
|'5.1.56-community' |
+-------------+
1 row in set (0.00 sec)
- linux下查看mysql版本
- linux下查看mysql版本
- linux下,如何查看mysql的版本
- linux下,如何查看mysql的版本
- linux下,如何查看mysql的版本
- Linux下查看Apache、PHP、MySQL等版本信息
- Windows/Linux 下查看Apache、Mysql、PHP版本
- linux下查看mysql版本的四种方法
- 查看MySQL版本命令 Linux
- Linux下如何查看版本
- linux下查看opencv版本
- Linux下查看tomcat版本
- linux下查看opencv版本
- linux下查看opencv版本
- linux下查看centos版本
- linux下查看opengl版本
- linux下查看opencv版本
- linux 下查看tomcat版本
- bootstrap fluid affix
- 脚本查看linux 密码更改日期和账户失效日期
- Java随机生成字母
- 查找排序数组的插入位置
- FileZilla FTP服务器源代码分析10
- linux下查看mysql版本
- 正态分布的前世今生(五)
- 剑指offer面试题4 替换一个字符串中的空格为 O(n)算法 和把两个有序数组合起来 依旧有序的算法
- C# WinForm控件随窗体大小改变自动适应改变
- 认识*.so里的JNI_OnLoad()函数
- 2013--腾讯笔试面试经历
- 桌面右键弹出二级菜单
- IPC机制---共享内存编程
- linux下vi命令修改文件及保存等使用方法整理