Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Putting a password to a user in PhpMyAdmin in Wamp

Tags:

How do you change the password for the root user in phpMyAdmin on WAMP server? because I'm locked out of phpMyAdmin, after changing the password incorrectly.

like image 775
rzlines Avatar asked Jan 31 '09 05:01

rzlines


People also ask

What is username and password for phpMyAdmin in Wamp?

Try username = root and password is blank. Hi, it will login into phpmyadmin, but not logged in adminer which is provided by wamp server.

How do I access phpMyAdmin in Wamp?

From the WAMP start page (http://localhost) under “Tools”, start phpMyAdmin (or find the WAMP icon in the notification area, left click to open and select phpMyAdmin).


2 Answers

my config.inc.php file in the phpmyadmin folder. Change username and password to the one you have set for your database.

    <?php /*  * This is needed for cookie based authentication to encrypt password in  * cookie  */ $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */  /*  * Servers configuration  */ $i = 0;  /*  * First server  */ $i++;  /* Authentication type and info */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'enter_username_here'; $cfg['Servers'][$i]['password'] = 'enter_password_here'; $cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;  /* User for advanced features */ $cfg['Servers'][$i]['controluser'] = 'pma'; $cfg['Servers'][$i]['controlpass'] = '';  /* Advanced phpMyAdmin features */ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; $cfg['Servers'][$i]['relation'] = 'pma_relation'; $cfg['Servers'][$i]['table_info'] = 'pma_table_info'; $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; $cfg['Servers'][$i]['column_info'] = 'pma_column_info'; $cfg['Servers'][$i]['history'] = 'pma_history'; $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';  /*  * End of servers configuration  */  ?> 
like image 169
user58670 Avatar answered Oct 10 '22 05:10

user58670


There is a file called config.inc.php in the phpmyadmin folder.

The file path is C:\wamp\apps\phpmyadmin4.0.4

Edit The auth_type 'cookie' to 'config' or 'http'

$cfg['Servers'][$i]['auth_type'] = 'cookie';

$cfg['Servers'][$i]['auth_type'] = 'config'; 

or

$cfg['Servers'][$i]['auth_type'] = 'http'; 

When you go to the phpmyadmin site then you will be asked for the username and password. This also secure external people from accessing your phpmyadmin application if you happen to have your web server exposed to outside connections.

like image 41
brianb Avatar answered Oct 10 '22 04:10

brianb