How to change the password of mysql

Source: Internet
Author: User
How does mysql change its password? Environment 1: windows? 1. Configure environment variables and add mysqlbin to path. 2. Then, enter the following command in DOS to modify the password (assuming the original password is empty) mysqladmin-uroot? Passwordroot ?? Refurl: blog.sina.com.cnsblog_53f716d40100kmr8.html

How does mysql change its password? Environment 1: windows? 1. Configure environment variables and add mysql \ bin to path. 2. Then, enter the following command in DOS to modify the password (assuming the original password is empty) mysqladmin-uroot? Password root? ? Refurl: http://blog.sina.com.cn/s/blog_53f716d40100kmr8.html

How to change the password of mysql

? Environment 1: windows

?

1. Configure environment variables and add mysql \ bin to path.

2. Enter the following command in DOS to modify the password (assuming that the original password is empty)

Mysqladmin-uroot? Password root

?

?

Refurl:

Http://blog.sina.com.cn/s/blog_53f716d40100kmr8.html

?

Http://www.2cto.com/database/201209/154363.html

?

?

Http://zhidao.baidu.com/link? Url = VR7e3Pj5Pfrpvr-ac3Xsl-JhYX7h6p8wFD0CLrxjpXXfIRGRJC4hZfebf11r2NLfwu709SPDsS8ZO8grZlqj5q

?

?

? Ps:

1. logon method with a blank password:

Run the following command to log on to mysql: the original password is null.

Mysql-uroot-p, and press Enter. On the Password Input page, press enter to enter the system.

?

2. logon method with a password not empty (assuming the password is root ):

Run the following command:

Mysql-uroot-proot

Press enter to log on to the system. You cannot add a colon at the end. Otherwise, you cannot log on to the system because the password is considered as root.

?

?

? Bytes ---------------------------------------------------------------------------------------------------------

Environment 2: linux (redflag6) + phpmyadmin

Connect to phpmyadmin, click localhost-> SQL, enter the following code, and click execute:

Update mysql. user set password = PASSWORD ('new password') where User = 'root'; flush privileges;

?

Refurl: http://hi.baidu.com/qidusky/item/505655de427847f793a974b7

?

Http://www.linuxidc.com/Linux/2008-02/11137.htm

?

?

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.