寻找配置文件在哪,再修改
[root@site104 CDH]# which mysql
/usr/bin/mysql
[root@site104 CDH]# /usr/bin/mysql --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/etc/my.cnf ~/.my.cnf
[root@site104 CDH]#