0

When I start MySql it just failed why?

mypc@computer:~$ sudo /etc/init.d/mysql restart

  • Stopping MySQL database server mysqld [ OK ]

  • Starting MySQL database server mysqld [fail]

Community
  • 1
  • 1
Amaresh Tiwari
  • 947
  • 13
  • 36

1 Answers1

-1

I got this answer from this SO question

If you're getting the #2002 Cannot log in to the MySQL server error while logging in to phpmyadmin, try editing phpmyadmin/config.inc.php and change:

$cfg['Servers'][$i]['host'] = 'localhost';

to:

$cfg['Servers'][$i]['host'] = '127.0.0.1';

Community
  • 1
  • 1
Amaresh Tiwari
  • 947
  • 13
  • 36