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

前端 未结 11 2216
逝去的感伤
逝去的感伤 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:56

    At each point in these instructions, check to see if the problem is fixed. If so, great! Otherwise, continue.

    1. Get to Services. (I was able to right click the Apache launch icon to get there.)
    2. Scroll down to MySQL. Click to start. This will get rid of the #2002 error. Now you'll have a new error:

    #1045 - Access denied for user 'root'@'localhost' (using password: NO)

    1. Edit the C:\wamp\apps\phpmyadmin3.5.1\config.inc.php file, changing $cfg['Servers'][$i]['extension'] = 'mysqli'; to instead be= 'mysql'
    2. Open Services again and Stop MySQL
    3. While in Services, Start wampmysqld

    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.

提交回复
热议问题