Xampp error-
1:22:52 AM [mysql] Found Path: "C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files (x86)\MySQL\MySQL Server 5.1\my.ini" MySQL
1:22:52 AM [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
1. Go to cmd and run it with Administrator mode.
2. Uninstall mysql service through command prompt using the following command.
sc delete mysql
3. Restart XAMPP
Second method-
You have two versions of mysql using the same port. 3306. Change the port.
You already have a version of mySQL installed on this machine that is using port 3306. Go into the most recent my.ini
file and change the port to 3307
. Restart the mySQL service and see if it comes up.
How to change the mysql port for xampp?
- Stop the xampp server, if it is already running.
- Edit the value to "port" in xampp/mysql/bin/my.ini to change port 3306 to 3307.