Mysql Database cannot start in XAMPP for Mac - mysql

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.

Related

Do you already have another mysqld server running on port: 3306 Ubuntu

I am new to Ubuntu and I am trying to run mysql using xampp. Earlier xampp was run successfully and able to run mysql as well. But suddenly when I trying to start it was stopping and it will display an error message on log saying "do you already have another mysqld server running on port: 3306". So I tried to kill the running process of mysql using following command but even that process was get killed, there will be another new process of mysql running when I rerun the following command.
pidof mysqld
sudo kill -9 <pid>
I tried to kill all the processes running on port 3306 as well. But same result happened. Where I was get wrong and how to resolve this?
sudo lsof -i TCP:3306' andsudo kill ` commands worked for me.
you can try "netstat -anltp" to find See if 3306 port still being used

Unable to access localhost/phpmyadmin

I've installed a LAMP stack, MySQL-server, apahe2, PHPMyAdmin, but unable to access is using localhost/PHPMyAdmin. I can access MySQL using the terminal. But not through PHPMyAdmin.
I also checked /var/www/html, no PHPMyAdmin folder is present.
I once deleted it by mistake, I think the issue is from there.
This is the output :
Try this In Terminal :
sudo /etc/init.d/apache2 stop
sudo /opt/lampp/lampp start
if it's not working try to change the port of phpmyadmin to 3306 to 3307
Hoping it will be useful

MySQL (Xampp) will not start on Windows 8.1

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.

Installing xampp but phpmyadmin doesn't connect

So I installed xampp on my Linux machine running Ubuntu 14.04LTS. Now all of a sudden turns out when I try to connect to phpmyadmin it refuses to connect. I have already installed mysql separately as well but it doesn't seem to work. Any workaround for this?
The error that I get is :
MySQL said:
Cannot connect: invalid settings.
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Any reason why this happens and solution to it?
Go to http://localhost/security/ and then click on the link http://localhost/security/xamppsecurity.php.
After that change password for superuser to 'root'.
After that open your http://localhost/phpmyadmin/
As per the comment by RiggsFolly I was running two instances of MySQL
So both mysql servers do end up messing with phpmyadmin and this is how you shutdown the external mysql server while using xampp's inbuilt mysql server to connect successfully using phpmyadmin:
Use whichmysql to find the utility that is running
Navigate to the directory where the external MySQL service is running:
$ cd /usr/bin
$ mysqladmin shutdown
This shuts down the MySQL service running if at all it is running.
$ sudo service mysql stop
This helps as well if at all it will tell you the status of the service if it is already shut down.
Now we need to stop the Xampp mysql server so we navigate to /lampp/bin and again execute the same command to shut mysql server down.
$ cd /opt/lampp/bin
$ mysqladmin shutdown
Simply restart xampp and you should be good to go.
$ sudo /opt/lampp/lampp restart
I just fell into the same error. The solution I used was, stopping all the servers of xampp, exiting the program. Starting and stoping mysql then starting xampp again
Initial procedure before starting xampp:
sudo service mysql stop
sudo /etc/init.d/apache2 stop
If it bring the error as stated in this question, then follow the procedure below.
That is:
sudo /opt/lampp/lampp stop
sudo service mysql start
sudo service mysql stop
sudo /opt/lampp/lampp start

setting mamp ports to 80 and 3306

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!