Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lamngockhuong/88d736ef3c433ba5de7ea8b979ebc592 to your computer and use it in GitHub Desktop.
Save lamngockhuong/88d736ef3c433ba5de7ea8b979ebc592 to your computer and use it in GitHub Desktop.
[How to set phpmyadmin password on xampp] #phpmyadmin #xampp
  1. Goto "phpmyadmin" folder, find and open "config.inc.php" file
  2. Find the line: $cfg [‘Servers’] [$a] [‘auth_type’] = ‘config’; in “config.inc.php” file.
  3. Change the word $cfg [‘Servers’] [$a] [‘auth_type’] = ‘config’; to $cfg [‘Servers’] [$a] [‘auth_type’] = ‘cookie’; in “config.inc.php” file and Save the changes.
  4. Now open browser and type “localhost/phpmyadmin”. Enter username is “root“. password is null means empty. you don’t type anything leave blank and press GO button.
  5. Now you can see “change password” link. please click that link.
  6. Set your phpMyAdmin password and retype again and press GO button.


@Marx-wrld
Copy link

Thanks it worked. But can the cookie setting affect some future configurations, or it won't?

@Mark97777
Copy link

You are good. It really works.

@stu640978
Copy link

You saved my life, thanks!

@rajavinoth-pfx
Copy link

Thanks it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment