Press "Enter" to skip to content

查看mysql版本/配置文件路径/编译参数

查看mysql版本:
[root@test ~]# mysql -V
mysql Ver 15.1 Distrib 5.5.56-MariaDB, for Linux (x86_64) using readline 5.1

查看mysql配置文件路径:
[root@test ~]# /usr/bin/mysql --verbose --help | grep -A 1 'Default options'
Default options are read from the following files in the given order:
/etc/mysql/my.cnf /etc/my.cnf ~/.my.cnf
这个信息的意思是:服务器首先读取的是/etc/mysql/my.cnf文件,如果前一个文件不存在则继续读/etc/my.cnf文件,如若还不存在便会去读~/.my.cnf文件.

查看mysql编译参数:
[root@test ~]# mysqlbug

Be First to Comment

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注