[root@server ~]# mysql -V
mysql Ver 14.14 Distrib 5.5.24, for Linux (x86_64) using EditLine wrapper
想查看版本信息可以两种方式
1.登录mysql,简要版本信息显示在头部
[root@vipvm0037 ~]# mysql -uroot -p123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 45453
Server version: 5.5.5-10.1.11-MariaDB MariaDB Server
Copyright (c) 2000, 2011, 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>
2.登录后输入status
mysql> status
mysql Ver 14.14 Distrib 5.5.24, for Linux (x86_64) using EditLine wrapper
Connection id: 45453
Current database:
Current user: rootchannel@h3
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.5.5-10.1.11-MariaDB MariaDB Server
Protocol version: 10
可通过
mysql -V
命令查看32位或64位想查看版本信息可以两种方式
1.登录mysql,简要版本信息显示在头部
2.登录后输入status