简体   繁体   English

MYSQL PID / SOCK错误-我无法让Mac El Capitan与完整的Web服务器一起使用

[英]MYSQL PID/SOCK error - I can't get my Mac El Capitan to work with full web server

So I have been trying to get my localhost up on my brand new MacBook Air on OSX El Capitan. 因此,我一直在尝试在OSX El Capitan上全新的MacBook Air上启动本地主机。

What I have so far is PHP seems to be working correctly, Apache seems to be working correctly also, but mysql is giving me a headache. 到目前为止,PHP似乎工作正常,Apache似乎也正常工作,但是mysql让我头疼。

I tried to install the stock version of mysql, which doesn't seem to work at all, it started and every time I tried to login to mysql it completely broke and I didn't see any error messages, but I guess it was the same I got for the homebrew installed version. 我试图安装普通版本的mysql,但似乎根本无法正常工作,它开始了,每次我尝试登录mysql时,它完全崩溃了,我没有看到任何错误消息,但是我想那是我为自制软件安装的版本也是如此。

When I tried Homwbrew brew install mysql it worked correctly. 当我尝试Homwbrew brew install mysql它可以正常工作。

Then I tried mysql_secure_installation it threw and error: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 然后我尝试了mysql_secure_installation并抛出错误: Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Then I tried mysql.server start and I got ... ERROR! The server quit without updating PID file (/usr/local/var/mysql/Szekelys-MacBook-Air.local.pid). 然后我尝试了mysql.server start ,却得到了... ERROR! The server quit without updating PID file (/usr/local/var/mysql/Szekelys-MacBook-Air.local.pid). ... ERROR! The server quit without updating PID file (/usr/local/var/mysql/Szekelys-MacBook-Air.local.pid).

This is my third fresh install for Mac and I have no idea at this point. 这是我的第三个Mac新安装程序,目前我还不知道。

I tried permissions, creating the PID file and a lot of other things. 我尝试了权限,创建了PID文件以及许多其他内容。

I'm afraid that I've not got a solution for you. 恐怕我没有适合您的解决方案。 I'm in the same boat though. 我虽然在同一条船上。 I have exactly the same error, and I've tried installing with brew as well as directly. 我有完全相同的错误,我尝试使用brew以及直接安装。

Even worse, I've got it working in my iMac, but not my Macbook Pro. 更糟糕的是,我可以在iMac上运行它,但不能在Macbook Pro上运行。

The only difference I can see is the version. 我可以看到的唯一区别是版本。 I've got 我有

mysql-5.6.26-osx10.8-x86_64 mysql-5.6.26-osx10.8-x86_64

on the iMac, working well. 在iMac上运行良好。

The one that's not working has: 一个不起作用的有:

mysql-5.7.9-osx10.9-x86_64 mysql-5.7.9-osx10.9-x86_64

I'm going to try using the earlier revision, it's the only thing I've not tried yet. 我将尝试使用较早的修订版,这是我尚未尝试过的唯一内容。

I know this is weird, but I have been experiencing the same problem over and over and coming upon no useful answers like the rest of you, but somehow I happened upon something that DID work on this page 我知道这很奇怪,但是我一直反复遇到相同的问题,却没有像其他人一样遇到有用的答案,但是不知何故,我碰巧在此页面上执行了DID工作

For some reason following the instruction to use mysql.server restart seemed to work. 由于某种原因,按照使用mysql.server restart的说明进行mysql.server restart似乎有效。 I didn't create any of the suggested launchctl versions either. 我也没有创建任何建议的launchctl版本。

I suggest doing a hard cleanup of homebrew brew cleanup --force -s to make sure you get a new download. 我建议对自制brew cleanup --force -s进行一次硬清理,以确保获得新的下载。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Mac 上的 Django + XAMPP(2002,“无法通过套接字'/tmp/mysql.sock'(2)连接到本地 MySQL 服务器”) - Django + XAMPP on Mac (2002, "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)") Mac Terminal / MySQL配置问题| 错误2002(HY000):无法通过套接字'/tmp/mysql.sock'连接到本地MySQL服务器(2) - Mac Terminal/ MySQL configuration issues | ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 无法在 Mac 上连接到 MySQL -- 缺少 mysql.sock 文件 - Can't connect to MySQL on Mac -- missing mysql.sock file 尝试了所有事情仍然得到 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in mac - Tried every thing still getting ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in mac 无法在 el capitan 上安装 php - Can't install php on el capitan El Capitan Mac上的Nginx无用的空服务器回复 - nginx on El Capitan Mac unhelpful empty server reply 无法通过套接字'/tmp/mysql.sock'(2)错误连接到本地MySQL服务器 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) error 在Mac(El Capitan)上重新安装php时无法加载PostgreSQL驱动程序 - Can not load PostgreSQL driver when reinstall php on mac (El Capitan) mysql连接错误:无法通过套接字'/var/lib/mysql/mysql.sock'连接到本地MySQL服务器(2)Godaddy Cpanel - mysql connection error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Godaddy Cpanel 为什么我无法连接到我的sql数据库? 我收到错误消息:“无法通过套接字连接到本地MySQL服务器” - Why can't I connect to my sql database? I get the error message: “Can't connect to local MySQL server through socket”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM