MySQL Database won't start in XAMPP Manager-osx

后端 未结 30 1252
暗喜
暗喜 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:28

    I had success with easy killing all active mysql processes in Monitor Activity tool:

    1) close XAMPP control

    2) open Monitor Activity

    3) select filter for All processes (default is My processes)

    4) search for: mysql

    5) force quit all the mysql

    6) relaunch XAMPP control and launch apache again

    Enjoy

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

    If these commands don't work for you:

    sudo killall mysqld
    sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
    

    Try this:

    For XAMPP 7.1.1-0, I changed the port number from 3306 to 3307.

    1. Click on Manage Servers
    2. Select MySQL Database
    3. Click on Configure on your right
    4. Change your port number to 3307
    5. Click OK
    6. Close your Control Panel and relaunch it.

    You are now good to go.

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

    it happened to me. and

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

    not work for me.

    so, i reinstall the xampp, then fix it.

    attention:

    reinstall the xampp, will not delete mysql data, no need to worry about that.

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

    on

    macOs High Sierra

    if mysql is not getting started from manager- oxs and have tried direct command i.e

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

    too than go to path edit

    /Applications/XAMPP/xamppfiles/etc/

    find file :

    my.cnf

    edit it

    under the [mysqld] section, add following line:

    innodb_force_recovery = 1
    

    after it save and run or can be done from manager-osx

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

    it should start the mysql.

    once its run you need to again edit the

    my.cnf

    file and remove the line just added

    innodb_force_recovery = 1
    

    stop and start mysql again. by command

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

    or by manager-osx

    it will be working fine.

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

    I encountered this problem just now. I checked log file and found it is caused by the server was not shutdown correctly. So I found this http://rivenlinux.info/how-to-recover-innodb-corruption-for-mysql/ and add a simple configuration "innodb_force_recovery = 1" in [mysqld] in my.cnf. Then the problem was solved.

    The log file is located /Applications/XAMPP/xamppfiles/var/mysql and it named accroding to your server name. Just link this XXX-MacBook-Pro.local.err

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

    Minimal Guide

    1. sudo killall mysqld

    2. manager-osx > start mysql


    If that didn't work...

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

    Google the error...


    Examples:

    Error:

    ERROR! The server quit without updating PID file (/Applications/XAMPP/xamppfiles/var/mysql/<computername>.local.pid)

    My Solution:

    In /Applications/XAMPP/xamppfiles/etc/my.cnf change user = <uid> s that <uid> is uid from id command.

    $ id
    uid=...
    
    $ vim /Applications/XAMPP/xamppfiles/etc/my.cnf
    ...
    
    0 讨论(0)
提交回复
热议问题