I have been through lots of forums and checked various posts on similar topic but non seems to work out for me.
I have freshly installed XAMPP 1.7.7 on my Ubuntu 11
Though I'm using Mac OS 10.9, this solution may work for someone else as well, perhaps on Ubuntu.
In the XAMPP console, I only found that phpMyAdmin started working again after restarting everything including the Apache Web Server.
No problemo, now.
I stopped MySQL sudo service mysql stop
and then started xammp sudo /opt/lampp/lampp start
and it worked!
Go to config.inc.php file using terminal by typing the following:
sudo gedit /opt/lampp/phpmyadmin/config.inc.php
The file will open in gedit.
Now open the file and edit
$cfg['Servers'][$i]['auth_type'] = 'localhost';
to
$cfg['Servers'][$i]['auth_type'] = 'cookie';
and keep the username as: root
password:
Also make sure that the lines with username and password are not commented:
//$cfg['Servers'][$i]['user'] = 'root'; //$cfg['Servers'][$i]['password'] = '';
Make sure that //
is removed from the above lines.
It turns out that the solution is to stop all the related services and solve the “Another daemon is already running” issue.
The commands i used to solve the issue are as follows:
sudo /opt/lampp/lampp stop
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/mysql stop
Or, you can also type instead:
sudo service apache2 stop
sudo service mysql stop
After that, we again start the lampp services:
sudo /opt/lampp/lampp start
Now, there must be no problems while opening:
http://localhost
http://localhost/phpmyadmin
please check the mysql.ini file in your xampp mysql installation... its found on xampp/mysql/bin directory
check the line 43
> log_error="mysql_error.log"
> #bind-address="127.0.0.1"
uncomment the line 43 if its still commented
Goto xampp folder in local drive c, click on mysql folder, then click on bin and finally click on "mysqladmin" application. Then go back and refresh your browser and the problem is solved.