If mysql does not start in xampp, this could be a port conflict issue. Mysql starts by default on port 3306. You need to check to see if another application is using this port. use the following command to test the application occupying the port
Linux: netstat -tulpn | grep 3306 Window: netstat -a -b Mac: lsof -nP -i4TCP:3306
if you find an application occupying this port, stop the application and restart xampp. Alternatively, you can go to the php.ini file or click "configure" in xampp for mysql and change the mysql port to 3307.
source share