Unable connect to MySql in Xampp server - php

here I am trying to connect mysql in xampp server but getting this message again and again.... I am able to connect apache.
Problem detected!
11:59:20 PM [mysql] Port 3306 in use by ""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"!
11:59:20 PM [mysql] MySQL WILL NOT start without the configured ports free!
11:59:20 PM [mysql] You need to uninstall/disable/reconfigure the blocking application
11:59:20 PM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
11:59:20 PM [mysql] Attempting to start MySQL service...
Please help me. Thanks in advance.

Related

Apache Service detected with wrong path(xampp)

I have xampp on my C Drive and it was deleted from my computer, i tried to install it again on the C drive but i failed, so i ended up installing it on my E drive.
And when i open it it gives me this error messages.
2:52:51 AM [Apache] Apache Service detected with wrong path
2:52:51 AM [Apache] Change XAMPP Apache and Control Panel settings or
2:52:51 AM [Apache] Uninstall/disable the other service manually first
2:52:51 AM [Apache] Found Path: "C:\xampp\apache\bin\httpd.exe" -k runservice
2:52:51 AM [Apache] Expected Path: "e:\xampp\apache\bin\httpd.exe" -k runservice
2:52:51 AM [mysql] MySQL Service detected with wrong path
2:52:51 AM [mysql] Change XAMPP MySQL and Control Panel settings or
2:52:51 AM [mysql] Uninstall/disable the other service manually first
2:52:51 AM [mysql] Found Path: C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
2:52:51 AM [mysql] Expected Path: e:\xampp\mysql\bin\mysqld.exe --defaults-file=e:\xampp\mysql\bin\my.ini mysql
2:52:51 AM [mysql] Problem detected!
2:52:51 AM [mysql] Port 3306 in use by "C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql"!
2:52:51 AM [mysql] MySQL WILL NOT start without the configured ports free!
2:52:51 AM [mysql] You need to uninstall/disable/reconfigure the blocking application
2:52:51 AM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
I'm not an expert but if I was in your situation I would listen to what te log says..
1- Easy but pain in the ass for further configuration: Change the port in your E: configurations files of mysql etc...
2- Try to delete the path that your log is seeing for the older installation also check if you can modify the mysql service that is running on port 3306 or delete that service too (it should be re-configured) the next time you'll start XAMPP. Don't forget to restart your php and mysql if you try this..
3- Easiest: delete/uninstall both of your XAMP path location and every mysql service that might run and do a complete instalatio again for XAMPP...
ps: Sorry for the format of that text I never comment on stackoverflow my bad ;)

Port problems installing XAMPP

Hello I am installing XAMPP and I am having a problem with MySQL port 3306.
I have used the control panel config my.ini and changed the port settings to 3307 and it is still showing the following error:
22:48:55 [mysql] Problem detected!
22:48:55 [mysql] Port 3306 in use by "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" MYSQL57"!
22:48:55 [mysql] MySQL WILL NOT start without the configured ports free!
22:48:55 [mysql] You need to uninstall/disable/reconfigure the blocking application
22:48:55 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
on Windows+R write cmd and press enter
on command line write:
netstat -nap tcp
and press enter, LISTENING are port used, search for 3307
for view name process use (execute how administrator):
netstat -nabop tcp

MySQL won't start on xampp (Windows)

This problem started when I didn't properly hibernate my laptop. Every time I open xampp, I can't start MySQL. I searched for online answers but nothing happened. I tried changing the port from 3306 to 3307 to 80, still nothing happened.
So I uninstalled xampp and install it again. After installing, I tried to start Apache and MySQL. Worked fine with Apache but on MySQL, I got this error log:
4:52:15 PM [mysql] Error: MySQL shutdown unexpectedly.
4:52:15 PM [mysql] This may be due to a blocked port, missing dependencies,
4:52:15 PM [mysql] improper privileges, a crash, or a shutdown by another method.
4:52:15 PM [mysql] Press the Logs button to view error logs and check
4:52:15 PM [mysql] the Windows Event Viewer for more clues
4:52:15 PM [mysql] If you need more help, copy and post this
4:52:15 PM [mysql] entire log window on the forums
It's usually because of Skype (or any other program that uses MySql port). Go to Skype Options > Advanced > Connection type in alternative port (e.g. 42795) and uncheck "Use port 80 and 443..."

mysql not working on xammp [duplicate]

This question already has answers here:
xampp MySQL does not start
(12 answers)
Closed 8 years ago.
please help me ....whenever i start xammp server and trying to start mysql It gives an error
like...
4:42:52 PM [mysql] Problem detected!
4:42:52 PM [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL"!
4:42:52 PM [mysql] MySQL WILL NOT start without the configured ports free!
4:42:52 PM [mysql] You need to uninstall/disable/reconfigure the blocking application
4:42:52 PM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
In a command shell, run:
netstat -b -p TCP
and look for a line that says localhost:3306 in the second column. Below this is the application's name using the port.
U probably have an application using the same port, if you have skype(mine was) you should consider turning off the automatically start on it to free the port. Run services.msc to check.

XAMPP wont start

I'm having an issue with Xampp, I have changed my port to listen to 8080 and I still cant connect. Here is my error:
12:37:13 [Apache] Problem detected!
12:37:13 [Apache] Port 80 in use by "Unable to open process" with PID 4!
12:37:13 [Apache] Apache WILL NOT start without the configured ports free!
12:37:13 [Apache] You need to uninstall/disable/reconfigure the blocking application
12:37:13 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
12:37:13 [Apache] Attempting to start Apache service...
Also I am having trouble with starting mySql
12:39:59 [mysql] Problem detected!
12:39:59 [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL"!
12:39:59 [mysql] MySQL WILL NOT start without the configured ports free!
12:39:59 [mysql] You need to uninstall/disable/reconfigure the blocking application
12:39:59 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
12:39:59 [mysql] Attempting to start MySQL service...
Edit: PID 4 is used by the System, however i have changed the port to listen to port 8080, but no success.
There is also no process uses port 3306 and im unsure why mySql wont start

Categories