

The same procedure can be applied for 'WAMP' and 'LAMP' stacks. You have successfully changed the default port numbers of apache and mysql server on xampp server. You can use 'Netstat' to check all used ports on your system. Please make sure the new port number is not used by any other service. and change it to '3310' or something else and save. To do this, go to /mysql/bin/ and open the file my.ini. Just like Apache, you can also change the default port used by MySQL Server which is '3306'. This is not required when you leave apache to run on the default port itself. Can someone please help me with this search problem. Please remember to use the port number along with local host to access it. 1 day ago &0183 &32 THE PROBLEM THAT I CANT SOLVE IS WHEN THE USER ENTERS THREE VALUES (mark,model,edition) THEN IT DOES NOT WORK AND IT TELLS ME THAT THERE IS AN ERROR IN MY SYNTAX (BUT INSIDE THE XAMPP IT WORKS PERFECTLY THE RESULT THAT I WANT). If everything goes fine, you will see the xampp home page. Open /apache/conf/extra/nf file and search for the lines,ĭone! Now restart Apache and access the url on browser. By default, XAMPP’s MySQL service binds to port 3306 when started, and it can only do so if another program is not already using it. to some unused port like this,Īnd replace '80' with the new port no like this, The most likely reason that XAMPP’s MySQL service is unable to start is because port 3306 is already used by a different program that is currently running on your computer. Unless you have changed it, this is the port number you must replace.Īnd then change the port no. Go to /apache/conf folder and open nf file. For eg: from $servername = "localhost" to $servername = "localhost:3307" in the database config file of your project.Stop Apache server and exit XAMPP control panel if it is already running. Its in the root of the folder in which you installed XAMPP, which is usually C:xampp. Also note that you would have to change port for all your projects to 3307 for them to work properly. Now add this below the line you found (at line 28 according to my file): $cfg = '3307' Click Config of Apache (From Control Panel only) => and then search for the line: $cfg = '127.0.0.1' (present at 27th line in my file).Click Config of MySQL (From Control Panel only) => my.ini and then Change all the occurrences of 3306 to 3307 (Search using ctrl + F and replace all).Now open XAMPP Control Panel => Config (Top Right) => MySQL and change the Main Port to 3307 => Save => Save.Stop the Apache Server from XAMPP Control Panel (if running).But, if for some reason, you can't do the above maybe because you need the other application too, then follow these steps to change the MySQL port to 3307. You need to uninstall/disable/reconfigure the blocking application that is using the port 3306. No need to mess with any ports or config files. If this works, use the Xampp Control panel as usual to start/stop add service or add autostart as normal. You should now be able to start / stop Mysql & Apache without any error messages. Now click the Config Button on xampp control panel, uncheck The Mysql (and Apache) Autostart features. You might as well do the same for Apache2 while you're here.Īpply changes and Close the services control panel. Look for mysqld in the list of running processes, right-click it to get the properties and change the startup type to "Manual". MySQL Server is using port 3306, so I've changed in xampp\mysql\bin\my.ini: client port 3360 socket 'C:/xampp/mysql/mysql.sock' mysqld port 3360 And in xampp\php\php.

This will open the services control panel. MySQL in XAMPP isn't starting after I installed MySQL Server. Open the Xammpp Control Panel and click on the Services Button on the right. Probable cause: The uninstaller failed to remove the autostart property from the mysql service, so the new instal picked it up.

The control panel then tries to start it, and instead of realising its already running, It assumes its another service and reports the error. As far as I can tell, the single instance of mysqld is the new one i've just updated to, but running as a 'service'.

It seems that the control panel is not as clever as it looks. However, I only have 1 instance of mysqld running. Make sure that mySQL is running on your system (.
#Xampp mysql not working zip file
Problem: after UPDATE of XAMPP to a new version I get the message "MySQL WILL NOT start without the configured ports free!". Download the small databases ZIP file (linked from schedule page) to your computer extract the three. I've now solved it, so maybe this will help someone else.
