1.添加文件touch /Library/LaunchDaemons/com.mysql.mysql.plist2.添加内容3.添加 后重启sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist1、 使用 service 启动:service mysqld restart2、使用 mysqld 脚本启动:/etc/inint.d/mysqld restart KeepAlive Label com.mysql.mysqld ProgramArguments /usr/local/mysql/bin/mysqld_safe --user=root