_php tutorial on modifying the root and phpMyAdmin password methods of MySQL in Apmserv

Source: Internet
Author: User
Apmserv is an integrated PHP MySQL Apache application development environment, after installation to help me configure the environment and there are phpmyadmin, below I would like to change the root password at the same time to change the phpMyAdmin password.

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

Two ways to change the root password are provided below:

1. Change the root password with phpMyAdmin

First login to the phpMyAdmin with the root account, then click on the left to enter the MySQL database, click on the top of "MySQL" 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 on "Execute" in the bottom right corner to see the changes succeed.

Then go to the Libraries directory under phpMyAdmin and modify the config.default.php file.

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

Now get on the landing 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 for the original password after running (enter Password): Default empty direct carriage return

Restart the Apmserv.

http://www.bkjia.com/PHPjc/632914.html www.bkjia.com true http://www.bkjia.com/PHPjc/632914.html techarticle Apmserv is an integrated PHP MySQL Apache application development environment, after installation to help me configure the environment and there are phpmyadmin, let me introduce in the change root password at the same time ...

  • 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.