简体   繁体   English

在OSX上安装XAMPP和MySQL

[英]XAMPP and MySQL installation on OSX

I installed XAMPP. 我安装了XAMPP。 Then I installed MySQL. 然后我安装了MySQL。 It appears that MySQL may have already been bundled with XAMPP? 看来MySQL可能已经与XAMPP捆绑在一起了?

So I apparently installed a second MySQL. 因此,我显然安装了第二个MySQL。 I also installed the "MySQL startup" thing that makes MySQL start everytime I start my computer. 我还安装了“ MySQL启动”程序,该程序可使MySQL在每次启动计算机时启动。

Now I have MySQL installed in two places. 现在我已经在两个地方安装了MySQL。 I can start and run MySQL on the one I knowingly installed but the MySQL located in "xamppfiles" gives me this error: 我可以在我已知安装的MySQL上启动并运行MySQL,但是位于“ xamppfiles”中的MySQL给我这个错误:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' (2)

I'm not sure what to do. 我不确定该怎么办。 I appear to have a mysqld daemon running and I can't kill, it seems it restarts itself. 我似乎正在运行mysqld守护程序,但无法终止,看来它会重新启动。 I'm not sure of the proper way to get rid of one of the installations. 我不确定摆脱其中一种安装的正确方法。

I'm not really sure what the question is. 我不太确定问题是什么。 MySQL is bundled in XAMPP. MySQL捆绑在XAMPP中。 You are receiving that error because you are trying to start 2 instances of it. 您收到该错误的原因是您尝试启动该错误的2个实例。 This will help you uninstall mysql if that's what you are trying to do 如果您要这样做, 将帮助您卸载mysql。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM