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.10 Operating system. Everything is running except for the phpMyAdmin.
Upon hitting: http://localhost/phpmyadmin, I am getting the following error:
MySQL said:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) Connection for controluser as defined in your configuration failed.
When i am starting the services with: sudo /opt/lampp/lampp start
I am getting the following:
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Another FTP daemon is already running.
XAMPP for Linux started.
Any suggestions would be greatly appreciated.
Go to config.inc.php file using terminal by typing the following:
The file will open in gedit.
Now open the file and edit
to
and keep the username as:
root
password:Also make sure that the lines with username and password are not commented:
Make sure that
//
is removed from the above lines.I stopped MySQL
sudo service mysql stop
and then started xammpsudo /opt/lampp/lampp start
and it worked!At each point in these instructions, check to see if the problem is fixed. If so, great! Otherwise, continue.
C:\wamp\apps\phpmyadmin3.5.1\config.inc.php
file, changing$cfg['Servers'][$i]['extension'] = 'mysqli';
to instead be= 'mysql'
This is convoluted, I know, but that's what worked for me. Some posts may say you need a password in the config file, but you don't. Mine is still ""
Hope this helps.
The problem might be with service mysql-server and apache2 running while system start. You can do the following.
To stop already running default services
To remove the services completely, so that they won't create problem in next system-restart, If you are in ubuntu(debian)
If you are in redhat or other, You could use
yum
or similar command to uninstall the servicesThen start the lampp again
Also, don't install mysql-server in the system, because it might start in system start-up, occupy the port, and create problem for mysql of lampp.
please check the mysql.ini file in your xampp mysql installation... its found on xampp/mysql/bin directory
check the line 43
uncomment the line 43 if its still commented