After the initial installation of Wamp, the default MySQL is no password, this time if you want to change the password, you can follow the following steps:
First, open the phpMyAdmin and see the interface:
Second, navigate to find "user", and then find "edit permission" to make changes,
Third, go to the "Edit permissions" screen, find "Change Password", make a change password, and then click "Execute".
IV. Locate the config.inc.php file in the phpMyAdmin (path C:\WAMP2\apps\phpmyadmin4.1.14, which is the path of the C drive that will be Wamp installed)
Five, open the config.inc.php, find $cfg[' Servers ' [$i] [' Password '] line, modify, the code is as follows:
/*Authentication Type*/$cfg[' Servers '] [$i[' verbose '] = ' mysql wampserver ';//$cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';$cfg[' Servers '] [$i[' auth_type '] = ' config ';$cfg[' Servers '] [$i[' user '] = ' root ';$cfg[' Servers '] [$i[' password '] = ' root '; //Change the password here to the password set in phpMyAdmin /*Server Parameters*/$cfg[' Servers '] [$i[' host '] = ' 127.0.0.1 ';$cfg[' Servers '] [$i[' connect_type '] = ' TCP ';$cfg[' Servers '] [$i[' compress '] =false;/*Select MySQL If your server does not has mysqli*/$cfg[' Servers '] [$i[' extension '] = ' mysqli ';$cfg[' Servers '] [$i[' allownopassword '] =true;
Wamp Change login password via phpMyAdmin