MySQL Database won't start in XAMPP Manager-osx

后端 未结 30 1253
暗喜
暗喜 2020-12-04 05:26

I downloaded XAMPP about a month ago and it was working just fine. Today I installed a voice recognition software and then restarted my computer. Ever since, MySQL won\'t st

相关标签:
30条回答
  • 2020-12-04 05:48

    check the err log on your /Applications/XAMPP/xamppfiles/var/mysql/ with filename like your_machine_name.local.err, if you find something like: "Attempted to open a previously opened tablespace. Previous tablespace ... uses space ID"

    the following works for me:

    edit file:

    /Applications/XAMPP/xamppfiles/etc/my.cnf

    find the [mysqld] section, add one line:

    innodb_force_recovery = 1

    then run

    sudo /Applications/XAMPP/bin/mysql.server start

    everything is ok again.

    and then the last step:

    edit the my.cnf again and remove the line you just added :

    innodb_force_recovery = 1

    and restart mysql again. Otherwise all your tables will be read only

    0 讨论(0)
  • 2020-12-04 05:52

    This could be due to the fact that another instance of mysqd is already running in your mac-book-pro (MacOs-10). It's next to impossible to kill/pkill mysqld or ....I tried that route many times, with out any success. Finally the following worked for me :

    launchctl unload -w /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
    

    wait a few minutes and check with

    ps -ef|grep mysqld
    

    It should be gone!

    0 讨论(0)
  • 2020-12-04 05:52

    You seem to have found a work-around by killing the process, but make sure you check for free space on your MySQL partition. If your logs or db files are consuming all your drive space, mysqld will not start.

    0 讨论(0)
  • 2020-12-04 05:52

    It had the same problem, all I did was give read-only permissions for all users and all items included in the following folders:

    /Applications/XAMPP/xamppfiles/etc
    /Applications/XAMPP/xamppfiles/sbin
    
    0 讨论(0)
  • 2020-12-04 05:53

    There's been a lot of answer, but I think I found what is causing it, at least for me. It looks like if you put your computer to sleep (or it falls asleep on its own), when it reopens, it tries to open the the mysql process again. At one point I looked at my activity monitor and I had 5 instances running - killing all of them and then starting mysql works.

    0 讨论(0)
  • 2020-12-04 05:54
    1. close XAMPP control
    2. sudo killall mysqld
    3. sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
    0 讨论(0)
提交回复
热议问题