How to Solve the XAMPP 1.7.7 - PHPMyAdmin - MySQL Error #2002 in Ubuntu

前端 未结 11 2134
逝去的感伤
逝去的感伤 2020-12-05 03:07

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

相关标签:
11条回答
  • 2020-12-05 03:35

    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.

    0 讨论(0)
  • 2020-12-05 03:37

    I stopped MySQL sudo service mysql stop and then started xammp sudo /opt/lampp/lampp start and it worked!

    0 讨论(0)
  • 2020-12-05 03:38

    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.

    0 讨论(0)
  • 2020-12-05 03:41

    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
    
    0 讨论(0)
  • 2020-12-05 03:47

    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

    0 讨论(0)
  • 2020-12-05 03:47

    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.

    0 讨论(0)
提交回复
热议问题