I have both apache and mySQL running with the default MAMP ports (8888 and 8889 respectively) and everything seems to work, but when I switch the ports to 80 for Apache and 3306 for mySQL, the mySQL server is unable to restart.
I am trying to setup MAMP to run on these ports because apparently this is optimal for developing in dreamweaver... Thus, given that I would like to have the ideal dev environment for dreamweaver, is there a way around using the 3306 port? Or, what could the potential problems be?
Thanks
Just in case anyone is having the same problem, here is how I fixed it:
I opened the Activity Monitor program and selected "All Processes"
Next I search for "mysqld" in the search text field. There is a good chance that you have an instance of mysql running and you have to find it and hit quit process.
Restart MAMP and you should be all set.
i posted my solution here..
but will it annoy the editor gods to re-post? i found this works so clearly and consistently that it's worth evangelizing.
fix courtesy of Abhinav Sood.
Launch MAMP. Open Terminal by typing terminal into Spotlight (Command + Space).
Open MAMP Preferences (Command + , ) and click on Reset MAMP Ports
(Port 8888 and Port 8889 for Apache and MySQL respectively).
Click on OK.
Switch to the terminal. Type sudo apachectl stop to shutdown the system Apache.
Restart MAMP.
Open MAMP Preferences once again and click on Set to Default Apache and MySQL ports. This will set the Apache and MySQL ports to 80 and 3306 respectively.
Switch to the terminal. Type sudo apachectl restart to restart Apache.
Switch back to MAMP and click on Open Start Page (or go to http://localhost/MAMP/?language=English in your browser)
And you’re done.
I configured httpd.conf.
In that file just replace:
Listen 80
for
Listen localhost:80
restart mamp. It worked for me.
#Mazal
Finally I found your great great solution of fixing this localhost:80 and apachectl issue. However, the issue will resume back when after re-start against!!!!!!
So fix this goto perference-->when quiting MAMP--> [uncheck] the box stop server.
this will keep the port setting to localhost:80 and apachectl in green light.
cheers!
Related
Mysql Database suddenly cannot be start in my Mac. I already tried to run sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start but it show the error ../Applications/XAMPP/xamppfiles/bin/mysql.server: line 264: kill: (9346) - No such process
ERROR!. is there anyone know how to solve it please?. I already tried to sudo killall mysqld but still can't start.
Open Xampp panel, in Mysql databse press configure and change the port from 3306 ->3310 for example and it should work.
Just had a similar issue setting up xampp on MacOS 10.14.X... you can simply run sudo killall mysqld then sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
For some reason if the above command doesn't work for you!
Try this:
For XAMPP 7.3.31-2, I changed the port number from 3306 to 3307.
Click on Manage Servers
Select MySQL Database
Click on Configure on your right
Change your port number to 3307
Click OK
Close your Control Panel and relaunch it.
You are now good to go.
I'm trying to run mysql database server on xampp but the status doesn't change . I've tried all the solutions that i found on the internet but it didn't solve my problem .
Any recommendations ?
If mysql is not starting in xampp, it might be a port conflict issue. Mysql run by default on port 3306. you need to check if another application is occupying that port.
use following command to check app occupying a port
Linux: netstat -tulpn
Window: netstat -a -b
if you find an application occupying that port, stop the application and restart xampp.
As an alternative, you can go to php.ini file or click configure in the dropdown shown in the image and change the mysql port to 3307
I have been using Xampp for a few weeks and so far I had no problem in launching MySQL. This time, when I ran Xampp as administrator (as usual), I got this error:
Problem detected!
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"!
I changed the port from 3306 to 3307 in C:\xampp\mysql\bin\my.ini and restarted my computer, and now I get this error:
"Error: MySQL shutdown unexpectedly..."
I found no working solution online, and I would appreciate it if you could help me with this.
This is what I see in the control panel:
mysql (xampp) problem
This is mysql_error.log:mysql_error.log
Try this quick fix:
Close and exit Xampp server / control panel
Go to your C:\xampp\mysql\data\ dir (or where your xampp resides)
Delete ibdata1 file
Restart xampp
Let me know the result.
hello i have low ranking that's why i help out through answer
this issue is related to your port configuration because sometime port is allocate by the other application in windwow
keep in mind firstly your skype is in logout mode or check their port configuration or
2nd step
You can change the port number to 3308 from 3306 in \xampp\mysql\bin\my.ini file.
3rd step : restart your xammp and check and otherwise uninstall
and download wamp
I don't know if it can helps cause I'm using Wamp (not Xampp), but I must disable Skype before it xan works,
Regards,
Charles
I found a very simple solution after all, without having to edit any my.ini files or installing and uninstalling stuff. Just in case someone else faces with this problem, I just used two commands in cmd:
netstat -a -t -n -o|grep 3306
Which tells which program uses port 3306. We just want the PID of the program - say it's 2588 - and then type:
taskkill /pid 2588 /f
I restarted Xampp and it worked.
I'm trying to use mysql on xampp but i won't run on window 7
It showing busy when i start it again.xampp control panel show the message.
.
window msconfig shows that mysql is in "start pending"
Go to the my.ini file and change the port no 3306 to 3307 then restart the xampp server. I hope it will works fine
it's mean port no on which you are try to start my-sql was used by sone other app.change the port no.,your mysql server will be start.
I'm trying to learn the apache / mysql / php stack bundled with XAMPP. I can't connect to the MySQL server using the MySQL workbench:
Your connection attempt failed for user 'root' from your host to server at localhost:3306: Can't connect to MySQL server on '127.0.0.1' (61)
Thinking it's a port problem, I check the port directly in Terminal with the command telnet 3306:
telnet: connect to address 127.0.0.1: Connection refused
Obviously the problem isn't with the Workbench, but something to do with the port connection itself.
I'm using:
OS 10.8 Mountain Lion
XAMPP 1.7.3
MySQL workbench 5.2.47
Sorry all, I'm posting my own question and answer. I had this problem and it nearly destroyed me because I could not find the correct answer anywhere on the interwebz. I finally overcame it, and wanted to post my findings in case it helps another befuddled traveler.
It turns out when you install XAMPP and choose to run the security routines, it automatically turns on a setting in the MySQL preferences to block connections on port 3306 from localhost. To fix this, open my.cnf in the xampp folder xamppfiles/etc. Look for the setting "skip-networking" which tells mySQL to block the port 3306. Comment this out by adding a pound sign so it is "#skip-networking". Now, the telnet command should work, and you should be able to use the Workbench.
Hope this is helpful for somebody!If it fixes your problem, give me a shout at #mrcheeks3185.
I faced same problem but I solved it.
I changed the MySQL workbench port to 3307 in the file below
C:\ProgramData\MySQL\MySQL Server 5.7\my.ini
and keep the default port 3306 for XAMPP
for mac you should create only a user with password and grant access(in my case a I use root with password) and turn on ip address and use that address to connect with a client like navcat or workbench I use XAMPP 7.3
ip address network given by XAMPP
connection config in navcat
test connection
I found that file after mount the image disk created for xampp, there you can find new_disc_mounted/etc/my.cnf
If you do not have my.cnf you can first go to xampp->mysql->bin->my.ini, copy
the contents of the file, next create my.cnf (in the bin folder) and paste the content to the file you just created.
This works for me. I had the same problem. Now I can use both Xampp and Workbench on one PC.
There is an issue: when you start workbench you get some warning that some features may not work properly since database is not fully compatible.
If changing ports won't work. What I did, I just make sure both XAMPP and MySQL Workbench don't start the server at the same time. Just go to MySQL Workbench, Select Server > Startup/Shutdown > Shutdown.
its due to different version of xampp, open log file and check last status of mysql there is showing error find it or remark/change it
Actually XAMPP and MySQL workBench might be using same port an are conflicting "3306" in so you are getting that error
Please try changing the workBench's default port number to other number and try again