MySQL won't start on XAMPP server

后端 未结 11 1692
一生所求
一生所求 2020-12-19 03:19

I have a problem with my XAMPP server. I can start Apache, FileZilla, and every thing else without problems, but when I try to start MySQL, it just says

相关标签:
11条回答
  • 2020-12-19 03:58

    Running the "setup_xampp.bat" file located in the root directory of Xampp did the trick for me.

    0 讨论(0)
  • 2020-12-19 04:00

    In The xampp folder you should find the start mysql batch file. Run it, The firewall might ask if you want to allow it through ( So check your firewall if it lets mysqld.exe through )

    0 讨论(0)
  • 2020-12-19 04:00

    OP did not provide enough information, however this (and other errors) can be caused by the default MySQL port (3306) being used. If this is the case, you can solve it like this:

    Go to:

    XAMPP Control Panel -> MySQL: "Config" button -> my.ini
    Change the port number from 3306 to a different valid port number. I just used 3307.

    You can find out more information about your problem by looking at the error log file. This is found here:
    XAMPP Control Panel -> MySQL: "Logs" button -> mysql_error.log

    0 讨论(0)
  • 2020-12-19 04:01

    In Windows, you should go: Start > Run > services.msc > Apache 2.4 > Properties > Start Mode > Automatic > Apply > Start > OK > [Same as MySQL]

    0 讨论(0)
  • 2020-12-19 04:10

    Go to the error log and check. For me I got this error message:

    InnoDB: Error: could not open single-table tablespace file .\mysql\innodb_index_stats.ibd InnoDB: We do not continue the crash recovery, because the table may become InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it. InnoDB: To fix the problem and start mysqld: InnoDB: 1) If there is a permission problem in the file and mysqld cannot InnoDB: open the file, you should modify the permissions. InnoDB: 2) If the table is not needed, or you can restore it from a backup, InnoDB: then you can remove the .ibd file, and InnoDB will do a normal InnoDB: crash recovery and ignore that table. InnoDB: 3) If the file system or the disk is broken, and you cannot remove InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf InnoDB: and force InnoDB to continue crash recovery here.

    So what I did was I went to the mysql folder and deleted the data1idb file. After that it worked fine. The problem started when I installed Drupal.

    0 讨论(0)
提交回复
热议问题