mysql 服务器不会启动 MAMP [英] mysql server won't start MAMP
问题描述
我在这里阅读了一些答案,说当您的 mysql 服务器无法在 MAMP 中启动时,您应该运行
I've read a few answers on here that say when your mysql server won't start in MAMP you should run
sudo killall -9 mysqld
我过去使用过它并且它有效,但无论出于何种原因,这次它不起作用.我在日志中收到此错误消息:
I've used that in the past and it has worked but for whatever reason it is not working this time. I'm getting this error message in the logs:
[04-May-2014 11:02:08 UTC] PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/Applications/MAMP/tmp/mysql/mysql.sock' (2) in /Users/Chappell/Websites/LFB/wp-includes/wp-db.php on line 1372
我最近从我在本地开发的另一台计算机上传输了我正在处理的站点的文件(不是 MAMP 本身).不确定这是否相关,但我想我会指出.
I recently transferred the files (not MAMP itself) for the site I'm working on from another computer where I was developing locally. Not sure if that's relevant but thought I'd point it out.
推荐答案
问题最终还是很简单的.我在两台不同的计算机上使用不同版本的 MAMP.我刚刚安装了最新版本,它的工作非常迷人.
The problem was quite simple in the end. I was using different versions of MAMP on the two separate computers. I just installed the latest version and it's working like a charm.
这篇关于mysql 服务器不会启动 MAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!