xampp mysql server is not working, shutdown unexpectedly - mysql

12:20:53 PM [Apache] Attempting to start Apache app...
12:20:53 PM [Apache] Status change detected: running
12:20:56 PM [mysql] Attempting to start MySQL app...
12:20:56 PM [mysql] Status change detected: running
12:20:57 PM [mysql] Status change detected: stopped
12:20:57 PM [mysql] Error: MySQL shutdown unexpectedly.
12:20:57 PM [mysql] This may be due to a blocked port, missing dependencies,
12:20:57 PM [mysql] improper privileges, a crash, or a shutdown by another method.
12:20:57 PM [mysql] Press the Logs button to view error logs and check
12:20:57 PM [mysql] the Windows Event Viewer for more clues
12:20:57 PM [mysql] If you need more help, copy and post this
12:20:57 PM [mysql] entire log window on the forums
my xampp my sql server is not running. IT starts and shut down automatically. What should I do now?

Related

Correcting errors in xampp

I am a beginner to xampp. Every time I start XAMPP control panel, I see a list of errors in the log box. Here is an example:
14:58:16 [main] Initializing Control Panel
14:58:16 [main] Windows Version: Windows 7 Professional SP1 64-bit
14:58:16 [main] XAMPP Version: 7.1.16
14:58:16 [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
14:58:16 [main] Running with Administrator rights - good!
14:58:16 [main] XAMPP Installation Directory: "c:\program files (x86)\xampp\"
14:58:16 [main] WARNING: Your install directory contains spaces. This may break programs/scripts
14:58:16 [main] WARNING: Your install directory contains special characters. This may break programs/scripts
14:58:16 [main] Checking for prerequisites
14:58:41 [main] All prerequisites found
14:58:41 [main] Initializing Modules
14:58:41 [Apache] Problem detected!
14:58:41 [Apache] Port 80 in use by "Unable to open process" with PID 4!
14:58:41 [Apache] Apache WILL NOT start without the configured ports free!
14:58:41 [Apache] You need to uninstall/disable/reconfigure the blocking application
14:58:41 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
14:58:41 [main] The FileZilla module is disabled
14:58:41 [main] The Mercury module is disabled
14:58:41 [main] The Tomcat module is disabled
14:58:41 [main] Enabling autostart for module "Apache"
14:58:41 [main] Enabling autostart for module "MySQL"
14:58:41 [main] Starting Check-Timer
14:58:41 [main] Control Panel Ready
14:58:42 [Apache] Autostart active: starting...
14:58:42 [Apache] Problem detected!
14:58:42 [Apache] Port 80 in use by "Unable to open process" with PID 4!
14:58:42 [Apache] Apache WILL NOT start without the configured ports free!
14:58:42 [Apache] You need to uninstall/disable/reconfigure the blocking application
14:58:42 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
14:58:42 [Apache] Attempting to start Apache service...
14:58:42 [mysql] Autostart active: starting...
14:58:42 [mysql] Attempting to start MySQL service...
14:58:44 [mysql] Status change detected: running
14:58:49 [mysql] Status change detected: stopped
14:58:49 [mysql] Error: MySQL shutdown unexpectedly.
14:58:49 [mysql] This may be due to a blocked port, missing dependencies,
14:58:49 [mysql] improper privileges, a crash, or a shutdown by another method.
14:58:49 [mysql] Press the Logs button to view error logs and check
14:58:49 [mysql] the Windows Event Viewer for more clues
14:58:49 [mysql] If you need more help, copy and post this
14:58:49 [mysql] entire log window on the forums
14:59:22 [mysql] Attempting to start MySQL service...
14:59:24 [mysql] Status change detected: running
14:59:28 [mysql] Status change detected: stopped
14:59:28 [mysql] Error: MySQL shutdown unexpectedly.
14:59:28 [mysql] This may be due to a blocked port, missing dependencies,
14:59:28 [mysql] improper privileges, a crash, or a shutdown by another method.
14:59:29 [mysql] Press the Logs button to view error logs and check
14:59:29 [mysql] the Windows Event Viewer for more clues
14:59:29 [mysql] If you need more help, copy and post this
14:59:29 [mysql] entire log window on the forums
I am also attaching the screenshots of service settings of Apache and MySQL below:
Can someone help me in identifying and correcting these errors. Should I reinstall Xampp? Please answer.
Port 80 in use by "Unable to open process" with PID 4!
To change the port number open the file
[XAMPP Installation Folder]/apache/conf/httpd.conf
Search for the string ‘Listen’ and ServerName and update the port number
Or close the program that's using port 80 you can check that using this command
C:> netstat -a -b
usually Skype..

XAMPP error: Apache shutdown unexpectedly when trying to start Apache

i just installed XAMPP and when i try to start apache and mySQL i got this error:
16:50:25 [Apache] Status change detected: running
16:50:26 [Apache] Status change detected: stopped
16:50:26 [Apache] Error: Apache shutdown unexpectedly.
16:50:26 [Apache] This may be due to a blocked port, missing dependencies,
16:50:26 [Apache] improper privileges, a crash, or a shutdown by another method.
16:50:26 [Apache] Press the Logs button to view error logs and check
16:50:26 [Apache] the Windows Event Viewer for more clues
16:50:26 [Apache] If you need more help, copy and post this
16:50:26 [Apache] entire log window on the forums
I tried reading several forums/youtube videos that suggests to change port 80 to 8080 and 443 to 4433 followed their instructions and it still doesn't work for me. Does it have to do with the way I installed that's why i get the error? or there's just a blocked port? or something. Help me on my midterms pls :(

Unable to start Apache and MySQL servers in Windows

I am getting some issue with the installation of xampp in windows. Actually I have skype and team viewer installed in my laptop. I have uninstalled team viewer and in skype I have checked off the "use port 80 and 443 for additional incoming connections" Still I am getting this problem. which is
5:07:24 PM [Apache] Attempting to start Apache service...
5:07:32 PM [mysql] Problem detected!
5:07:32 PM [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.5\my.ini" MySQL"!
5:07:32 PM [mysql] MySQL WILL NOT start without the configured ports free!
5:07:32 PM [mysql] You need to uninstall/disable/reconfigure the blocking application
5:07:32 PM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
5:07:32 PM [mysql] Attempting to start MySQL service...
Both MySql and Apache are not starting. Pls help me with this.
Thanks in advance. :)
As the error says: you are running MYSQL from C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld
You can go Windows logo > type services.msc > Search for Mysql Service and stop it. (left pannel "Stop")
NOTE: If you are going to use XAMPP, you should remove any previous installation of apache, php and/or mysql

Mysql server not starting in xampp

I am getting the following error when i start the mysql server from xampp control panel
MySQL Service detected with wrong path
PM 03:06:44 [mysql] Change XAMPP MySQL and Control Panel settings or
PM 03:06:44 [mysql] Uninstall/disable the other service manually first
PM 03:06:44 [mysql] Found Path: c:\xampp\mysql\bin\mysqld-nt.exe --defaults-file=c:\xampp\mysql\bin\my.cnf mysql
PM 03:06:44 [mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
PM 03:06:44 [main] Starting Check-Timer
I ran Xampp as administrator.Uninstalled the Mysql. And now every is running fine .
But now i can access the localhost:1234 as port for my Apache is 1234

My XAMPP cannot run MYSQL

So I was trying to use XAMPP and it started giving me weird errors. I can't figure out what's causing these kind of errors.Here's what it says:
2:57:57 PM [mysql] MySQL Service detected with wrong path
2:57:57 PM [mysql] Change XAMPP MySQL settings or
2:57:57 PM [mysql] Uninstall/disable the other service manually first
2:57:57 PM [mysql] Found Path: ERROR: Not Able To Open Service Manager
2:57:57 PM [mysql] Expected Path: c:\program files\xampp\mysql\bin\mysqld.exe --defaults-file=c:\program files\xampp\mysql\bin\my.ini mysql
2:57:57 PM [mysql] Successful!
Then, I still click on the START button of mysql and then click Shell, here another error and it says:
File:" c:\program files\xampp\xampp_shell.bat" not found.
How can I fix this errors?