I am pretty much new in this field. I have installed Bitnami.C:\Bitnami\wampstack-7.1.7-0\apache2\htdocs this is my root folder and I have done many work done in that folder. They are all working fine...but I realized that I need Xampp so I downloaded Xampp and the problem faced in Apache saying
[mysql] Problem detected!
[mysql] Port 3306 in use by "C:\Bitnami\WAMPST~1.7-0\mysql\bin\mysqld.exe --
defaults-file=C:\Bitnami\WAMPST~1.7-0\mysql\my.ini wampstackMySQL"! [mysql] MySQL WILL NOT start without the configured ports free!
[mysql] You need to uninstall/disable/reconfigure the blocking application
[mysql] or reconfigure MySQL and the Control Panel to listen on a different port
How should I fix this...and what caused the problem? is that because of Apache server I installed via Bitnami? configuration issue right? if so
How should I config Xampp without touching or changing root folder I am afraid of messing up the current works.
Hi Bitnami engineer here,
The control panel of XAMPP is showing that error because the default port of MySQL is in used. You can check the process that is using the 3306 port by clicking in the Netstat button in the control panel.
Once you know the process that is using that port, you can either stop that process or modify the port that MySQL uses in the C:\Bitnami\WAMPST~1.7-0\mysql\my.ini file.
In case the default Apache port (80) is not used, Apache will start without throwing any error message.
Regards,
Jota
Related
11:42:05 AM [mysql] Error: MySQL shutdown unexpectedly.
11:42:05 AM [mysql] This may be due to a blocked port, missing dependencies,
11:42:05 AM [mysql] improper privileges, a crash, or a shutdown by another method.
11:42:05 AM [mysql] Press the Logs button to view error logs and check
11:42:05 AM [mysql] the Windows Event Viewer for more clues
11:42:05 AM [mysql] If you need more help, copy and post this
11:42:05 AM [mysql] entire log window on the forums
I've been trying to use MySQL on XAMPP but it's showing this error. I can't seem to find the solution. Any help would be really appreciated. Before this I was also unable to start Apache but then I disabled World Wide Web Publishing Services and it's working fine on port 80 and 443. Does this error have anything to do with the previous error?
maybe trying port 3306 will make your XAMPP can using MySQL, hope it help you
I haven't used XAMPP for a long time now, but yes I remember the same issue that happened to me. The other service might be taking the ports required by XAMPP.
You should stop both of them first.
To rectify it, one thing that you can do for sure is to: Start XAMPP as an administrator. This will allocate the required ports for the service.Should work fine then.
I found the answer to the question.
Close XAMPP if it's open and go to in the following directory:
C:\xampp\mysql\backup
Copy everything in that folder and go to:
C:\xampp\mysql\data
Select everything in that folder and paste what you copied and run XAMPP as an administrator then start MySQL
I installed XAMPP v3.2.1 because I wanted to learn how to create database in MySQL and learn more about TOMCAT. However, I am a little confused about what to do now. I have read many blogs and the documentation on this page http://dev.mysql.com/doc/refman/5.0/en/creating-database.html.
While following the directions I found that:
I can't access my local host.
Attempted Solution: I shut down skype because I read that might be an issue.
I don't have any older versions of XAMPP on my computer and I don't believe I am connected to any other servers. So, I don't have permission to do anything.
OR
Am I trying to access mysql through the wrong command prompt? I am trying to use MySQL from the XAMPP shell. I am not sure why I cannot get everything working. Am I going about this the wrong way?
Thanks for any help
XAMPP only offers MySQL (Database Server) & Apache (Webserver) in one setup and you can manage them with the xampp starter.
After the successful installation navigate to your xampp folder and execute the xampp-control.exe
Press the start Button at the mysql row.
Now you've successfully started mysql. Now there are 2 different ways to administrate your mysql server and its databases.
But at first you have to set/change the MySQL Root password. Start the Apache server and type localhost or 127.0.0.1 in your browser's address bar. If you haven't deleted anything from the htdocs folder the xampp status page appears. Navigate to security settings and change your mysql root password.
Now, you can browse to your phpmyadmin under http://localhost/phpmyadmin or download a windows mysql client for example navicat lite or mysql workbench. Install it and log in to your mysql server with your new root password.
XAMPP Apache + MariaDB + PHP + Perl (X -any OS)
After successful installation execute xampp-control.exe in XAMPP folder
Start Apache and MySQL
Open browser and in url type localhost or 127.0.0.1
then you are welcomed with dashboard
By default your port is listing with 80.If you want you can change it to your desired port number in httpd.conf file.(If port 80 is already using with other app then you have to change it).
For example you changed port number 80 to 8090 then you can run as 'localhost:8090' or '127.0.0.1:8090'
Changing XAMPP Default Port:
If you want to get XAMPP up and running, you should consider changing the port from the default 80 to say 7777.
In the XAMPP Control Panel, click on the Apache – Config button which is located next to the ‘Logs’ button.
Select ‘Apache (httpd.conf)’ from the drop down. (Notepad should open)
Do Ctrl+F to find ’80’ and change line Listen 80 to Listen 7777
Find again and change line ServerName localhost:80 to
ServerName localhost:7777
Save and re-start Apache. It should be running by now.
The only demerit to this technique is, you have to explicitly include the port number in the localhost url. Rather than http://localhost it becomes http://localhost:7777.
<?php
if(!#mysql_connect('127.0.0.1', 'root', '*your default password*'))
{
echo "mysql not connected ".mysql_error();
exit;
}
echo 'great work';
?>
if no error then you will get greatwork as output.
Try it saved my life XD XD
I have just installed MAMP and I'm trying to access PHPMyAdmin by going to http://localhost:3306/MAMP. This will just start downloading a file called MAMP with the following content:
J
5.5.42
`q6X9T{1ˇ˜Ä~H.KolO)zP_jmysql_native_password!ˇÑ#08S01Got packets out of order
If I change to ..:3306/PHPMyAdmin it just downloads a file with PHPMyAdmin as a title and similar content.
I have changed the MySQL-port to 3306 (and the Apache port to 80) because I'm using VirtualHostX for adding virtual hosts.
I can see in my MAMP-window that MySQL Server is running (the box is green) but Apache Server is not. What am I doing wrong? How do I get Apache Server to run?
By going into the terminal and entering sudo apachectl stop I stopped Apache and could start it up from the MAMP-window without any trouble.
I tried to installed mysql-installer-community-5.6.23.0.msi on windows 8.1 OS. Every steps i followed for installation. But after installation in configuration settings i got problem to go ahead.
Actually i selected config type : Development Machine and in connectivity TCP/IP port was already there by default and its showing warning icon near to 3306 port number. Due to this warning icon i am not able to press next button.
Please suggest me how can i enable 3306 port for installation MY SQL sever.
I am new for mysql and server side coding. I just started from the manual and i already had project which run localhost and 3306 port so I want this port to be configure in my installation process.
Any help would be really appreciated.
Thanks
Fixed issue by to take reference of this link.
http://www.dummies.com/how-to/content/how-to-open-a-port-in-the-windows-7-firewall.html
An older instance of MySQL is still running and listening to the port 3306. You need to end this process manually, even if you did uninstall MySQL before.
To do this, go to "Windows Task Manager, click on the "Processes" tab, search for the "mysqld" process in the list, right click and select "End Process" from the menu.
Go back to the MySQL Installer window, retype 3306 in the text box, the warning symbol should disappear now.
I installed Xampp on Windows 7 32-bit. When I try to start MySql in XAMPP control panel (v3.2.1) I have the following message and MySql does not start.
23:02:03 [mysql] Problem detected!
23:02:03 [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"!
23:02:03 [mysql] MySQL WILL NOT start without the configured ports free!
23:02:03 [mysql] You need to uninstall/disable/reconfigure the blocking application
23:02:03 [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
23:02:03 [mysql] Attempting to start MySQL service...
A similar problem was reported here but there is no working answer. When I try to install with MySql disabled, the result is that I even don't have an option even to try to run it.
I am new to Xampp and don't know where and what to look for to solve the issue
I need to run Apache and MySql with Php.
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.
You also need to change port 3306 to 3307 in xampp\php\php.ini
You have two versions of mysql using the same port 3306.
Change the port by:
Stop the xampp server, if it is already running.
Edit the value to "port" in xampp/mysql/bin/my.ini
Here:
# The following options will be passed to all MySQL clients
[client]
Password = your_password
port = 3306 #---> 3307
socket = "/ xampp / mysql / mysql.sock"
and also here:
The MySQL server
[ mysqld ]
port = 3306 #---> 3307
socket = "/ xampp / mysql / mysql.sock"
2. Start mysql service
I found out that re-installing Xampp as an administrator and running it as an Administrator worked.
Try this: really quick + worked for me:
Open Task Manager > Services Tab
Find "mysqlweb" service > right-click it to stop service
Launch Xampp again
ps: excuse image below for different language :)
Google Brings me here. The favourite answers don't help me.
I've now solved it, so maybe this will help someone else.
Problem: after UPDATE of XAMPP to a new version I get the message "MySQL WILL NOT start without the configured ports free!".
However, I only have 1 instance of mysqld running.
It seems that the control panel is not as clever as it looks. 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'. The control panel then tries to start it, and instead of realising its already running, It assumes its another service and reports the error.
Probable cause: The uninstaller failed to remove the autostart property from the mysql service, so the new instal picked it up.
Solution:
open the Xammpp Control Panel and click on the Services Button on the right. This will open 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".
you might as well do the same for Apache2 while you're here.
Apply changes and Close the services control panel.
Now click the Config Button on xampp control panel, uncheck The Mysql (and Apache) Autostart features.
Reboot the machine.
You should now be able to start / stop Mysql & Apache without any error messages.
If this works, use the Xampp Control panel as usual to start/stop add service or add autostart as normal.
No need to mess with any ports or config files.
If there are two instances of MySql it's normal that it gives such an error if they both run at the same time. If you really need 2 servers, you must change the listening port of one of them, or if you don't it's probably better to simply uninstall one of them. This is so regarless of MySql itself, because two programs cannot listen on the same port at the same time.
Same issue on macOS and got it fixed by running the same installer again.
Whereas I COULD NOT get it fixed by
Changing port
Rebooting XAMPP
Restarting system
Note:
Make sure to select 'XAMPP Core Files' component while running the installer as by default it is not selected.
Though re-running the installer is not smart option when one has to do it every now and then. My installer is xampp-osx-7.0.13-1-installer.dmg
Update: I've got my MAMP working with this simple solution here. So, same should work for XAMPP.
If you have previously installed MySQL Workbench the problem is that another MySQL instance is running at 3306 port.
So uninstall MySQL and XAMPP and after that, reinstall only XAMPP.
This worked for me.
So if you are on a Windows machine, you can open the task manager. Check the processes list, and delete the mysqlId from it. Restart the xampp. It will work fine.
You need to uninstall/disable/reconfigure the blocking application that is using the port 3306. 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.
Stop the Apache Server from XAMPP Control Panel (if running)
Now open XAMPP Control Panel => Config (Top Right) => MySQL and change the Main Port to 3307 => Save => Save
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)
Click Config of Apache (From Control Panel only) => config.inc.php and then search for the line: $cfg['Servers'][$i]['host'] = '127.0.0.1'; (present at 27th line in my file). Now add this below the line you found (at line 28 according to my file): $cfg['Servers'][$i]['port'] = '3307';
Now, you are good to go. Also note that you would have to change port for all your projects to 3307 for them to work properly. For eg: from $servername = "localhost"; to $servername = "localhost:3307"; in the database config file of your project.
I hope this works for you too.
My fix was to stop MySQL57 in services, Xampp now starts/stops Apache/MySQL as expected.
The is a simple and faster way to solve the problem.
You don't need to open a services or write any cmd code just follow my steps:
from XAMPP control panel click Explorer button
from directory find mysql_stop.bat file and run it.
Thats all!! super easy.
Refresh your netstat list, you will see that it has gone.
please make it as best answer.