1

I am trying to access phpMyAdmin. But it is asking for username and password. However I don't think I ever set one up. I tried to use username="root", password="" or password="password" or password="root". But no luck.

Any help please?

Jenz
  • 8,009
  • 6
  • 38
  • 69
mikey
  • 1,179
  • 5
  • 18
  • 38

1 Answers1

4

you can try to set the password for root@localhost to be blank. There are two ways:

The MySQL SET PASSWORD command:

SET PASSWORD FOR root@localhost=PASSWORD('');

Using the command-line mysqladmin tool:

mysqladmin -u root -pCURRENTPASSWORD password ''

For more info :- How to remove MySQL root password

Community
  • 1
  • 1
Rakesh Sharma
  • 13,404
  • 4
  • 34
  • 41