Xampp Won't Startup MySQL server on Mac OSX?

前端 未结 6 1743
星月不相逢
星月不相逢 2021-02-06 02:36

I\'m on a Mac OSX Mountain Lion. Xampp won\'t let me start MySQL server.

I have set the permissions to Read/Write for everyone and every file in the XAMPP folder.

<
6条回答
  •  时光说笑
    2021-02-06 02:54

    you can check if any instance of mysql is running by executing in the terminal

    sudo ps aux | grep mysql
    

    this will list any processes that have mysql in their name.

    _mysql          18943   0,0  0,5  2514608  20340 s008  S+    5:46am   0:00.07   /opt/local/libexec/mysqld --basedir=/opt/local --datadir=/opt/local/var/db/mysql5 --  user=_mysql --log-error=/opt/local/var/db/mysql5/Max-NB.local.err --pid-  file=/opt/local/var/db/mysql5/Max-NB.local.pid
    root            18900   0,0  0,1  2439964   2592 s008  S+    5:46am   0:00.15 /bin/sh   /opt/local/bin/mysqld_safe5
    root            18899   0,0  0,1  2439396   2616 s008  S+    5:46am   0:00.02 sudo   mysqld_safe5
    

    you may then terminate the process by executing

    sudo killall mysqld_safe5
    

    you should replace "mysqld_safe5" by the name of your mysql process. It is most likely "mysqld".

    After that you could try to restart your server and check if it works.

提交回复
热议问题