Introduction of the root and phpMyAdmin cryptography methods in Apmserv to modify MySQL

Source: Internet
Author: User

Use Apmserv 5.2.6 build PHP environment, through the apmser.5.2.6 management MySQL database, will automatically enter the phpMyAdmin login interface, the root account password default is empty, enter the phpMyAdmin prompts need to modify root Passwords are otherwise vulnerable to intrusion.

Here are two ways to modify the root password:

1. Change the root password with phpMyAdmin

First with the root account login phpMyAdmin, and then click on the left to enter the MySQL database, at the top of the click "MySQL" into 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 to see that the modification was successful.

Then you have to enter the phpMyAdmin under the Libraries directory, modify config.default.php file.

Find $cfg[' Servers ' [$i] [' password '] = ', modified to $cfg[' Servers '] [$i] [' password '] = ' 123456′; 123456 is the password.

Now log in and try it.

2, Apmserv Modify the MySQL password method

Enter the Apmserv installation directory (assuming the current path is "D:/program Files/apmserv5.2.6″").

Input CD D:/program files/apmserv5.2.6

The code is as follows Copy Code

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

Mentioned above.. Prompt to enter the original password (enter Password): Default Empty direct return

Restart Apmserv.

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.