1.查询mysql安装路径
which mysqld
2.查看mysql默认配置文件路径
/usr/sbin/mysqld --verbose --help |grep -A 1 'Default options'