xampp mysql server not starting code example

Example 1: mysql database is not starting in xampp

sudo service mysql stop
sudo /opt/lampp/lampp restart

Example 2: mysql server not starting in xampp in mac

sudo rm -rf ~/.bitnami  // type this command in your terminal.
//THIS WILL SOLVE THIS PROBLEM BUT WILL DELETE ALL YOUR DATABASES

Example 3: unable to start xampp mysql

3

One of many reasons is xampp cannot start MySQL service by itself. Everything you need to do is run mySQL service manually.

First, make sure that 'mysqld.exe' is not running, if have, end it. (go to Task Manager > Progresses Tab > right click 'mysqld.exe' > end task)

Open your services.msc by Run (press 'Window + R') > services.msc or 0n your XAMPP ControlPanel, click 'Services' button. Find 'MySQL' service, right click and run it.
	by:-Palash Bajpai

Tags:

Sql Example