apmserv is an integrated php mysql apache application development environment. After installation, it helped me configure the environment and phpmyadmin. Now I will introduce how to change the phpmyadmin password at the same time as changing the root password.
Use apmserv 5.2.6 to build a PHP environment and manage the mysql database through apmser.5.2.6. You will automatically enter the login interface of phpmyadmin. The root account password is empty by default. When entering phpmyadmin, you will be prompted to change the root password, otherwise it will be easy to be invaded.
The following provide two methods to change the root password:
1. Use phpmyadmin to change the root password
First log in to phpmyadmin with the root account, then click on the left to enter the mysql database, and click "mysql" on the top to enter the sql input interface. Enter the following command:
The code is as follows
|
Copy code
|
||||
update user set password=password(’123456′) where User=’root’ Then click "Execute" in the lower right corner and see that the modification is successful. Then you need to enter the libraries directory under the phpmyadmin directory and modify the config.default.php file. Find $cfg['Servers'][$i]['password'] = ' ' and change it to $cfg['Servers'][$i]['password'] = '123456′; 123456 is the password. Hurry up and log in now to try it out.
Enter the APMserv installation directory (assuming the current path is "D:/Program Files/APMServ5.2.6"). | Enter cd D:/Program Files/APMSer5.2.6
The code is as follows |