[[email protected] ~]# /usr/local/mysql/bin/mysqld --verbose --help |grep -A 1 ‘Default options‘ Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf #服务器首先会读取/etc/my.cnf文件,如果发现该文件不存在,再依次尝试从后面的几个路径进行读取
时间: 2024-09-30 19:17:05