MySQL change root password in WAMP environment

Source: Internet
Author: User
Tags phpmyadmin

Integrated WAMP Environment command not works, change password in phpMyAdminPermissions--root user modification, executionthen you'll find that you can't log in with phpMyAdmin.
Modify the phpMyAdmin inside the corresponding password can be phpmyadmin in the config.inc.php in the
$cfg [' Servers '] [$i] [' password '] = ', the value changed to the modified password;
cmd under switch to MySQL installation directory
Cases
D:/mysql/bin
Prerequisite: The MySQL user root password is empty.
Input mysql-u root MySQL
mysql> state Input Update user set Password=password (' New password ') where user= ' root ';
Echo Echo
Query OK, 0 rows Affected (0.00 sec)
Rows matched:2 changed:0 warnings:0
mysql> State input FLUSH privileges;
Echo Echo
Query OK, 0 rows Affected (0.00 sec)
mysql> status Input quit
Exit SQL
Note that each command is preceded by a semicolon ";"
MySQL only starts executing the line command
The second command updates the MySQL system repository that is loaded into the memory.
Re-start MySQL.
Then you'll find that you can't log in with phpMyAdmin.
Modify the phpMyAdmin inside the corresponding password can be phpmyadmin in the config.inc.php in the
$cfg [' Servers '] [$i] [' password '] = ', the value changed to the modified password; Source Address: http://blog.sina.com.cn/s/blog_6e44ac5101012tvl.html

MySQL change root password in WAMP environment

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.