XAMPP Modify the Mysql default password method _mysql

Source: Internet
Author: User
Tags phpmyadmin

Here to introduce xampp modify the MySQL default password probably the process is to use the XAMPP phpMyAdmin into the modified MySQL password, modify the XAMPP after we modify the password phpMyAdmin, so that the complete revision of the MySQL default password.

About the process

In MySQL, set the password to open IE input URL localhostphpadmin, point users see the root user, pull down, find the place to modify the password, enter the password, carry out the operation, and finally go to your XAMPP installation directory to find the Phpadmin folder, Open the Find config.inc.php file, open to find a MySQL configuration to change the config cookie to the password where it is just set the password.

Specific methods

Enter Http://localhost/phpmyamdin on the browser address into the database Control Panel, and then select the name for the MySQL database, as shown in the user table, where the two user's password for root is null.

We can manually edit the password of the root user in the image database above. Point quick Edit, or edit can edit the password, such as password: 123456, then fill out "*6bb4837eb74329105ee4568dda7dc67ed2ca2ad9" (excluding quotes)

After editing the following figure

If you want to change the password to another, you can directly execute the west of the SQL statement, the new_password into their own password can be:

UPDATE user SET Password=password (' New_password ') WHERE user= ' root ';

In addition, since the MySQL root user password has been modified, then the corresponding password configuration in phpMyAdmin to be modified to find the configuration file, such as mine is

f:mppphpmyadminconfig.inc.php

Find the following code

The code is as follows

Authentication type and Info * * $cfg [' Servers '] [$i] [' auth_type ']
= ' config '; $cfg [' Servers '] [$i] [' user ']
= ' Root '; $cfg [' Servers '] [$i] [' password ']
= '; $cfg [' Servers '] [$i] [' extension ']
= ' mysql '; $cfg [' Servers '] [$i [' Allownopassword ']
= true;

Amended to

The code is as follows

Authentication type and Info * * $cfg [' Servers '] [$i] [' auth_type ']
= ' config '; $cfg [' Servers '] [$i] [' user ']
= ' Root '; $cfg [' Servers '] [$i] [' password ']
= ' 123456 '; $cfg [' Servers '] [$i] [' extension ']
= ' mysql '; $cfg [' Servers ' [$i] [' allownopassword ']
= true;

This will require you to restart the login phpMyAdmin.

The above is a small set to introduce the XAMPP to modify the MySQL default password method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Related Article

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.