I Get This Error Message
Error: MySQL shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums
It looks like you already have mysql running from different distribution (appserv) on the same port (3306).
You are inside a XAMPP control panel. which is different Windows LAMP distribution (xampp) which cannot start/stop appserv's mysql server instance.
IMHO you should pick one and uninstall other.
You should try have a look on this post, the MySQL port (3306) is in use or blocked:
Xampp and MySQL not started
You can try running this in command shell:
netstat -b -p TCP
Look for the results under local address. It will be something like 'localhost:3306'. It will list the port and the applications using it. Check the application that is listed for 3306
Related
I am new to php and I would like to run a local testing server using easy php at home to work on school projects but when I try to start the easy php server, this error message pops up: Apache port (80) is already used by another application ! Close this application and try to run again the server It then gives me some instructions on how to close the application (by killing processes of selected ports), but when I right on the selected ports, the kill processes option is faded and not clickable. Maybe there something else I need to check or do on my computer to run this local host? Thanks for all help!
Just a shot in the dark but maybe try to close Skype, if you have that running, and then start the server? If I remember correctly Skype listens on port 80 by default. If that's indeed the issue then you can configure Skype not to listen on port 80 in its settings...
That might be related to Skype or the IIS server using port 80. You can configure Skype to use different ports in the preferences. You might try going to "localhost" in your browser and see what comes up as well. If it shows a Microsoft IIS server page then you know that the server is running. Disabling that or turning that off depends upon your operating system. You can probably just look that up on the internet if that is the issue.
Hi I've recently downloaded wamp server to help me with my website. My problem is that when I click on phpmyadmin I get an error message "HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
Also when I click on my localhost i get this page which I don't think is correct
Finally to see my webpages I have to write http://localhost:8888/. If I placed the 8888 in front of of phpMyAdmin then I can see the phpmyadmin but its not synced with my mysql database and tables that I created, it's just a plain phpmyadmin. I don't know what to change or where to start to change things to get it to work properly so that I can see my tables and databases I created in mysql in PHPmyadmin.
In my httpd.conf the servername is *ServerName localhost:81*and the listen listen 81
Any help would be much appreciated
It's definitely not a problem to run IIS on your computer, you can even server phpMyAdmin from it if you have PHP properly configured. It sounds like you're running another webserver alongside IIS (I'm perceiving this based on the numerous ports you're using, you've referenced port 80, 81, 8080, and 8888), which also is fine (again, as long as you have them properly configured so as to not conflict). You can have one listen on port 80 and the other on 8080, for instance, so there's no conflict of ports.
You have to know which server is using which ports, and which server you're expecting to use phpMyAdmin from. If IIS isn't using the PHP interpreter and isn't configured to serve phpMyAdmin, then using the IIS port will give you the 404 error -- which appears to be the initial cause of your screenshot here.
You said that if you do use port 8888 you can use phpMyAdmin, but without access to the databases you expect to see. This is a good start and means one of two things happen -- either you're logged in as a user who doesn't have privileges to see those databases (perhaps the anonymous user) or you've also got two MySQL instances running on your machine with their own datadir (well, I couldn't even imagine what data corruption would occur if they shared the same datadir). Do you see any databases at all? Can you create a new database?
Can you connect at the command line client and see your databases? From the command line client use the STATUS; command to see the user and host you're connected as, then compare those to what's shown on the main page of phpMyAdmin. Note that hosts matter, % is not the same as localhost.
I have been working on php for some time. I have cloned a git repo yesterday. Just after that i am able to connect to MySQL server, access MySQL db and phpmyadmin properly. Today, I started the server and tried to access phpmyadmin from xampp control panel, as soon as I try to open it, apache port is changing automatically to 49868 and mysql connection terminates.Then, again apache changes its ports to previous states.
Any help is appreciated. Thanks in advance.
EDIT : I reinstalled everything and it worked.
Check if another application is using port 80.
In command prompt use:
netstat -aon | findstr :80
enter image description here
If windows verify if in task manager is already running XAMPP.
i am using xampp 1.8.3 on windows 7. when i restart mysql from xampp control panel. it shows
1:33:10 PM [mysql] Error: MySQL shutdown unexpectedly. 1:33:10 PM
[mysql] This may be due to a blocked port, missing dependencies,
1:33:10 PM [mysql] improper privileges, a crash, or a shutdown by
another method. 1:33:10 PM [mysql] Press the Logs button to view
error logs and check 1:33:10 PM [mysql] the Windows Event Viewer
for more clues 1:33:10 PM [mysql] If you need more help, copy and
post this 1:33:10 PM [mysql] entire log window on the forums
then i delete xampp/mysql/data/ibdata1 file and mysql starts.but my database tables have dropped already and i can only view database name with no tables. if i want to remove database i got
#1010 - Error dropping database (can't rmdir '.\key', errno: 41).
every time i have to create new database for run my program.please help.
Microsoft Windows include a firewall which specifically blocks ports. If you plan on using MySQL through a network port then you should open and create an exception for this port before performing the installation. To check and if necessary add an exception to the firewall settings:
First ensure that you are logged in as an Administrator or a user with Administrator privileges.
Go to the Control Panel, and double click the Windows Firewall icon.
Choose the Allow a program through Windows Firewall option and click
the Add port button.
Enter MySQL into the Name text box and 3306 (or the port of your
choice) into the Port number text box.
Also ensure that the TCP protocol radio button is selected.
If you wish, you can also limit access to the MySQL server by
choosing the Change scope button.
Confirm your choices by clicking the OK button.
Additionally, when running the MySQL Installation Wizard on Windows 7 or newer, ensure that you are logged in as a user with administrative rights.
You can read further here:
Installing MySQL on Microsoft Windows
Connecting to MySQL Remotely from Windows with SSH
First I uninstall xampp setup and also removed all the files from xampp directory. Please be sure to make a copy of xampp/htdocs folder to store your existing files. Also copy mysql/data folder contents, Since all databases are stored in that folder. After that I re-install xampp setup and restart my PC and now everything is working fine.
This is common issue we are facing during installation of xampp.
Simple solution check installed port then check in service list there is one service running named mysqld , you have to find it and kill it. and restart mysql.
Now you will find mysql start running.
Let me know if still you facing any issue.
Alright, I am totally new to programming so be easy on me. I followed the instructions from my Lynda.com account on how to install WampServer for Windows 7 but run I am unable to get my orange icon to change to green. I have tried to connect to "put it online" but received the following error:
"Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started"
So I restarted all services with the same error. I also tried stopping services then restarting. No luck and I still get the same error.
Some following things to keep in mind:
I already have SQL Server installed before I tried to install WAMP Server so wonder if they're linked to the same port. If so, not sure how to find and edit this port.
-I do not have SKYPE so they are not using the same port.
My theory is it's having something to do with having SQL Server and MySQL using the same port. How do I change a port if so. Thanks in advance for any suggestions!
I got the same problem and found that it is not the SQL server which is conflicting, but the SQL server Reporting service. I went to services.msc and stopped SQL server Reporting service. I also chagned it to manual so that it does not start automatically on a reboot. Now I restarted WAMP server and it turned green.
Tnx-
SJ Creation
You can Test Port 80 by clicking on the Wamp Server, Apache, Service, then Test Port 80. If it is being used, it will tell you otherwise it will tell you that it is not being used at that instance.
Stopping SQL Reporting Service, Start, then type Administrative Tools, click on the name , select computer Management, then Services and applications> SQL Server Configuration> Services & Look for SQL Reporting Servicves, Set it to Manual start, and stop.
Restart Your WAMP Server, Test Ur Port, This time U will not find it BUSY. Restart all Services.
for more to change port or other problem please check here
hope it can help you
There are two steps
Change the port number from 80 to something like 8888 (in the thousands) - to change the port number you must click on the wamp or mamp and then click on apache then click on httpd.conf and then searchfor listen. Change the port number to 4444 or 8888 or something in the thousands.
if wamp is now working but you still get
Not Found
HTTP Error 404. The requested resource is not found.
you must right the absolute path as follow
localhost:8888/folderName/filename.php
this should fix your problem
Also: you can go to dreamweaver and click on server. Then place localhost:8888 instead of simply using localhost
I got the same problem and found that it is not the SQL server which is conflicting, but the SQL server Reporting service. It seems it is using same port 3306 which is being used by MYSql. I went to services.msc and stopped SQL server Reporting service. I also chagned it to manual so that it does not start automatically on a reboot. Now I restarted WAMP server and it turned green.
Presently I am not using SQL server Reporting services, hence I can keep the service stopped. I have no idea how I can change the port for this service so that they don't conflict. If any one really wants to use SQL server Reporting services, he or she may dig deeper into this service to somehow change the port.
Thanks,
Pankaj