cp support-files/my-default.cnf /etc/my.cnf #修改配置文件 cat>/etc/my.cnf<<EOF # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL.