activating the phpmyadmin

Asked

Viewed 1,879 times

0

I am running XAMPP, however my phpmyadmin is disabled I have done everything to activate, there is some other option, follow below the error.

#2002 - File or directory not found

Server not responding (or local server socket not responding is configured correctly)

  • What operating system xaampp is installed on?

  • Ubuntu ().

2 answers

3

Try to do the following, stop all services and initialize again, use the commands below to stop services

sudo opt/lampp/lampp stop              
sudo /etc/init.d/apache2 stop    
sudo /etc/init.d/mysql stop

OR

sudo service apache2 stop
sudo service mysql stop

After you stop services, start again

sudo opt/lampp/lampp start

Try again to open phpmyadmin again

Translated from: stackoverflow EN

  • guy is giving the same error, the strange is that when I give the command 'service mysql stop' in the terminal, he tells me that the work is unknown???

  • @user3677610 It seems that mysql was not installed correctly, type sudo service mysql status, the output should be something like mysql start/running, process 835, if the same error occurs try to reinstall the program

  • of the same, the time that is installing mysql in the terminal it hangs in the middle of the way

  • Maybe you are conflicting with some version of mysql already installed, try uninstalling mysql, sudo apt-get remove --purge mysql-server, see if this link helps http://tipslegais10.blogspot.com/2013/01/uninstallar-mysql-no-linux-por-completo.html

  • Good day I could not solve the problem yet, I already removed mysql from my computer folder, but it is not activating, and it arrives to confirm when the server goes up, but in the status of xampp appears disabled..

  • I managed to resolve was fact was running two apache just I give a service apache2 stop and solved, thank you very much

Show 1 more comment

-2

How to make mistakes with Mysql and live in peace! :)

1- If you access mysql from the terminal and the error refers to the lack of a directory, then you may have to install mysql-server, like this: sudo apt-get install mysql-server

2- if you try to enter mysql by phpmyadmin and give the following error: phpmyadmin ERROR - #2002, or something of the kind, it may be that you have two mysql installed and running at the same time, which generates conflicts. To solve this just quit mysql and leave only the xampp running, like this: cd /etc/init. d # . /mysql stop # . /apache stop -After that, just startar the mysql inside the lampp, like this: -within the /opt folder: opt/lampp/lampp start , or , sudo opt/lampp/lampp -or inside the lampp folder as follows: sudo . /lampp start

3- if you see an error like: Existing Configuration file (config.inc.php) is not readable... , means that you have given a permission to change the file or run, and this file is read only, and mysql does not start if you do not change the permission, so just type: -search the file, in my case it looked like this: cd opt/lampp/phpmyadmin/ -within the /phpmyadmin directory, you have the config.inc.php file, so inside the directory, type: sudo chmod 700 config.inc.php -This way the file can be executed by mysql without any interruption.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.