1、关闭 mysqladmin -u root -p shutdown 2、启动 /usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf &