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屋!