查看mysql的版本号

1.1 在命令行登录mysql,即可看到mysql的版本号

[[email protected] ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 487032
Server version: 5.7.17 MySQL Community Server (GPL)

Copyright (c) 2000, 2016, 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.利用navicat连接mysql的客户端工具可以查看

连接之后右键——详细信息

3.利用mysql命令查看

mysql> select version();
+-----------+
| version() |
+-----------+
| 5.7.17    |
+-----------+
1 row in set (0.01 sec)

mysql> 

4

4.在命令行使用status查看

mysql> status
--------------
mysql  Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using  EditLine wrapper

Connection id:        488398
Current database:
Current user:        [email protected]
SSL:            Not in use
Current pager:        stdout
Using outfile:        ‘‘
Using delimiter:    ;
Server version:        5.7.17 MySQL Community Server (GPL)
Protocol version:    10
Connection:        Localhost via UNIX socket
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    utf8
Conn.  characterset:    utf8
UNIX socket:        /tmp/mysql.sock
Uptime:            5 days 10 hours 5 min 40 sec

Threads: 154  Questions: 15051829  Slow queries: 0  Opens: 37599  Flush tables: 11  Open tables: 1563  Queries per second avg: 32.138
--------------

mysql> 

5.使用mysql --help | grep Distrib查看

[[email protected] tools]# mysql --help | grep Distrib
mysql Ver 14.14 Distrib 5.7.17, for linux-glibc2.5 (x86_64) using EditLine wrapper

原文地址:https://www.cnblogs.com/xzlive/p/11773678.html

时间: 2024-08-26 11:03:28

查看mysql的版本号的相关文章

jdbc-mysql基础 DatabaseMetaData 查看mysql的版本号、主/次版本号

礼悟:    好好学习多思考,尊师重道存感恩.叶见寻根三二一,江河湖海同一体.          虚怀若谷良心主,愿行无悔给最苦.读书锻炼强身心,诚劝且行且珍惜. 数据.数据,命根就在数据.云计算.AI等技术,都是以数据为基础.操作数据库一定要谨慎小心.给最苦 这里的代码,看看就好,要有自己的判断.遇到抉择,要不耻上下问. javaSE:8                              mysql:5.7.14     mysql-connector-java:5.1.44     

mysql 官方版本号命名 及安装后查看信息 、位数

朋友说他那mysql5.6是32位的,让我用源码给装个64的,之前就查了下mysql的相关版本及位数,小计一笔 源码包,你在什么位数上面编译,就是什么位数的安装包了,源码包不区分位数 一.在这个下载界面会有几个版本的选择. http://blog.sina.com.cn/s/blog_62b37bfe0101he5t.html http://blog.itpub.net/12679300/viewspace-1251661/ 1. MySQL Community Server 社区版本,开源免费

查看mysql连接状态各类参数

命令: show processlist; 如果是root帐号,你能看到所有用户的当前连接.如果是其它普通帐号,只能看到自己占用的连接. show processlist;只列出前100条,如果想全列出请使用show full processlist; mysql> show processlist; 命令: show status; 命令:show status like '%下面变量%'; Aborted_clients 由于客户没有正确关闭连接已经死掉,已经放弃的连接数量. Aborted

【MySQL】查看MySQL配置文件路径及相关配置

1)关于配置文件路径 有时候,我发现虽然尝试修改了配置文件的一些变量,但是并没有生效.后来才发现原来是因为修改的文件并非MySQL服务器读取的配置文件. 如果不清楚MySQL当前使用的配置文件路径,可以尝试这样查看: 从上图可以看出, 服务器首先会读取/etc/my.cnf文件,如果发现该文件不存在,再依次尝试从后面的几个路径进行读取. (2)关于配置文件配置项分段 配置文件my.cnf通常会分成好几部分,如[client],[mysqld], [mysql]等等.MySQL程序通常是读取与它同

查看mysql apache php nginx的编译参数

查看mysql编译参数: cat /usr/local/mysql/bin/mysqlbug|grep configure 查看apache编译参数: cat /usr/local/apache2/build/config.nice 查看php编译参数:/usr/local/php/bin/php -i |grep configure 查看nginx编译参数:/usr/local/nginx/sbin/nginx -V

使用mysqlreport查看Mysql数据库信息

mysqlreport是www.hackmysql.com开发的一款基于perl语言编写的状态报告工具. 它将show status 和 show innodb status的输出结果进行处理,使得输出信息的可读性更高.由于是perl编写的脚本,所以需要先安装perl环境,再与mysql数据库连接,因此还需要安装数据库接口DBI 和数据库驱动 DBD-Mysql. 安装perl-DBI yum install -y perl-DBI 安装mysqlreport wget http://hackm

修改及查看mysql数据库的字符集

修改及查看mysql数据库的字符集 Liunx下修改MySQL字符集:1.查找MySQL的cnf文件的位置find / -iname '*.cnf' -print /usr/share/mysql/my-innodb-heavy-4G.cnf/usr/share/mysql/my-large.cnf/usr/share/mysql/my-small.cnf/usr/share/mysql/my-medium.cnf/usr/share/mysql/my-huge.cnf/usr/share/te

查看MYSQL数据库中所有用户及拥有权限

查看MYSQL数据库中所有用户 mysql> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; 查看数据库中具体某个用户的权限mysql> show grants for 'cactiuser'@'%';

Linux下查看mysql、apache是否安装,安装,卸载等操作

Linux下查看mysql.apache是否安装,并卸载. 指令 ps -ef|grep mysql 得出结果 root     17659     1  0  2011 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysql