How to modify the password of mysql root and phpmyadmin in apmserv

Source: Internet
Author: User
Tags php mysql
Apmserv is an integrated phpmysqlapache application development environment. after installation, it helps me configure the environment and phpmyadmin, next I will introduce phpmyadmin password while modifying the root password... apmserv is an Integrated php mysql apache application development environment. after installation, it helps me configure the environment and phpmyadmin, next I will introduce how to change the phpmyadmin password while modifying the root password.

Using apmserv 5.2.6 to build a PHP environment, and managing the mysql database through apmser.5.2.6 automatically enters the phpmyadmin logon interface. the root account password is blank by default, when you enter phpmyadmin, the system prompts you to change the root password or the password will be vulnerable to intrusion.

The following two methods are provided to change the root password:

1. use phpmyadmin to change the root password

First, log on to phpmyadmin with the root account, click on the left to enter the mysql database, click "mysql" on the top to enter the SQL input interface, and enter the following command:

Update user set password = password ('000000') where User = 'root'

Click "execute" in the lower-right corner. the modification is successful. then, go to the libraries directory under The phpmyadmin directory and modify the config. default. php file.

Find $ cfg ['servers'] [$ I] ['password'] = '', change it to $ cfg ['servers'] [$ I] ['password'] = '000000'; 123456 is the password. please try logging in now.

2. how does APMserv modify the Mysql password?

Go to the APMserv installation directory (assuming the current path is "D:/Program Files/APMServ5.2.6") and enter cd D:/Program Files/APMServ5.2.6. the code is as follows:

D:/Program Files/APMServ5.2.6> cd MySQL5.1/bin

D:/Program Files/APMServ5.2.6/MySQL5.1/bin> mysqladmin-u root-p password 123456

As mentioned above, the system prompts you to Enter the original Password (Enter Password) after running: the default value is null. press Enter to restart APMserv.

Address:

Reprinted at will, but please attach the article address :-)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.