0

I installed XAMPP. Then I installed MySQL. It appears that MySQL may have already been bundled with XAMPP?

So I apparently installed a second MySQL. I also installed the "MySQL startup" thing that makes MySQL start everytime I start my computer.

Now I have MySQL installed in two places. I can start and run MySQL on the one I knowingly installed but the MySQL located in "xamppfiles" gives me this error:

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. I'm not sure of the proper way to get rid of one of the installations.

Dinah
  • 52,922
  • 30
  • 133
  • 149
  • Just had this issue. I don't have a duplicate instance of MySql running, but killing XAMPP from the filesystem and putting in a new one fixed it all. Of course, you need to restore... everything – Dan Rosenstark Sep 21 '16 at 20:31

1 Answers1

0

I'm not really sure what the question is. MySQL is bundled in XAMPP. You are receiving that error because you are trying to start 2 instances of it. This will help you uninstall mysql if that's what you are trying to do

Community
  • 1
  • 1
  • My question is how to kill the daemon process that starts whenever I start my computer, how to uninstall ONE MySQL without uninstalling the other, and how to get rid of that error. –  Jul 04 '14 at 15:33