mysql in xampp starts and stops in five seconds

后端 未结 8 523
长情又很酷
长情又很酷 2021-01-12 11:49

I installed xampp in windows XP. I am able to start apache and tomcat. But when I start mysql, it gets started but stops after five seconds.

So, I am not able to w

相关标签:
8条回答
  • 2021-01-12 12:06

    Did you by any chance update your old install and then copy/paste your old 'htdocs' and 'mysql data' files to the upgrade files?

    Have just run into the same problem, which I solved by uninstalling then re installing. Copying only my Htdocs over then re building my database... A pain but as I am only in Development and using Symfony2 rebuilding my database with fixtures was pretty painless.

    Hope this is of some help.

    Doug.

    0 讨论(0)
  • 2021-01-12 12:09

    i had the same problem and i have found a temporary solution by going to the installation folder

    xampp->mysql->bin-> mysqld.exe file

    running the mysqld.exe file

    my xampp mysql service restarted successfully

    0 讨论(0)
  • 2021-01-12 12:14

    This is how I solved it:

    1. xampp control panel > config > service & port settings > apache > mainport > 80 (default) change to 81.

    2. open xampp > apache > cnonf > httpd.conf

    3 search for ServerName localhost:80 change to ServerName localhost:81 search for Listen 80 change to Listen 81

    1. Start Xampp > apache

    2. open http://localhost:81/phpmyadmin/

    whoaa its working

    0 讨论(0)
  • 2021-01-12 12:19

    I had a similar problem that was caused by the TCP port needed for one for the services already being used by another application. In my case it was Skype using ports 80 and 443 as fall-back.

    You can check if any of the needed TCP ports are used by another application by running the following at the command prompt:

    c:>netstat /a
    

    The offending connection will be listed as "LISTENING" in state STATE column. Then it's up to you to figure out what application is using the port. There is a nice tool called portmon for that.

    The ports you'll need are 80, 3360... (anyone can expand on this?)

    0 讨论(0)
  • 2021-01-12 12:20

    This worked for me, actually checking the 'mysql' service is not disabled. Turns out it was disabled.

    how to check?

    1. windows + R (opens run window)
    2. type in services.msc
    3. check if the service mysql is set as disabled. (change it to automatic)

    This helped me with my unknown Phpmyadmin not starting issue.

    0 讨论(0)
  • 2021-01-12 12:22

    I'm not sure if this will also work for your case, but it surely did for me, and I've yet to encounter the answer here.

    go to Xampp/mysql/bin/my.ini

    add the following line:

    innodb_force_recovery = 1 
    

    (I think anything > 0 works here, also... it might be handy to make a backup of the file just to be on the safe side.)

    You should now be able to successfully start your mySQL service.

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