ERROR Mysql Server not running!

What issue or error are you experiencing?

Pls help ooooo. I have three websites running here the suddenly this error when i tried installing phpmyadmin

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hey @jonaoze

If you create a new, blank site in Local can you access that okay? If you can, then you may want to try reimporting the site getting the errors. The steps would look like this:

  • Locate the site files on your machine, and save a copy of them to your desktop. If you click Go to Site Folder under your site name it should take you right to where they are located.
  • Once you have those copied, completely delete the site from Local
  • Restart Local/your machine
  • Reimport the site back into Local. You can refer here on how to Restore from only Local site files

If you’re still having trouble, can you give us some more information on your setup?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!

Hope this helps:
I faced the same issue, and in my case, there were two main causes:

:hammer_and_wrench: 1. MySQL was slow to respond
If you’re using an HD, MySQL might be taking too long to respond to LocalWP calls. I solved this by creating a custom version of the my.cnf file optimized for HDD performance.

:page_facing_up: I’m sharing a .txt with the changes I made. Just copy and paste them into the my.cnf file located at:

my.log (981 Bytes)

C:\Users\[YOUR_USER]\AppData\Roaming\Local\lightning-services\mysql-8.0.35+4\conf\my.cnf

PS: I also applied this config inside my projects and blueprints in LocalWP, just to make sure everything stayed in sync.

:magnifying_glass_tilted_left: 2. Conflict with other programs using MySQL
Have you used XAMPP or similar software before? In my case, even after uninstalling XAMPP, the MySQL service was still running in the background.

:light_bulb: Solution: I opened services.msc on Windows and manually disabled the leftover MySQL service from XAMPP. After that, LocalWP worked just fine.

Thank you for sharing @EncryptKalean!

@jonaoze have you been able to troubleshoot some more? Keep us posted and we’d be happy to help further!