mamp开启服务,mysql没有开启
打开/applications/MAMP/logs/mysql_error_log.err 查看报错日志
161224 00:15:00 mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error_log.err'. 161224 00:15:00 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql56 16122400:15:01 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended
解决办法:打开/applications/MAMP/db/mysql56 删除文件ib_logfileN (N 代表数字),重启mamp即可