MySQL password reset

Source: Internet
Author: User

MySQL password reset

5.1 Modify the configuration file to be free of authorization

___________________________________________________________

[[email protected] ~]# mysqladmin -uroot password  ' 111qqq ... ' [[email  PROTECTED] ~]# MYSQL -UROOT -P111QQQ ... [[email protected] ~]# vim /etc/my.cnf[[email protected] ~]# /etc/init.d/ mysqld restartshutting down mysql. success! starting mysql. success! [[email protected] ~]# mysql mysql> update user set password= Password (' 111qqq ... ')  where user= ' root '; mysql> select * from user where  user= ' root ' \g; [[email protected] ~] #vim  /etc/my.cnf   # Delete the following content skip-grant  [[email protected] ~]#/etc/init.d/mysqld restart[[email  protected] ~]# mysql       #无法登录ERROR  1045  (28000):  access denied for user  ' root ' @ ' localhost '   (using password: no) [[email  prOTECTED] ~]# MYSQL -UROOT -P111QQQ ... 


This article is from the "Fuqin Wine" blog, please make sure to keep this source http://szk5043.blog.51cto.com/8456440/1762963

MySQL password reset

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.