MySQL Login Issues

Source: Internet
Author: User
Tags mysql login

1. Problem one: After using update mysql.user set password= ' root ' to change the password, you cannot log in

Workaround: The procedure is as follows.

(1) Close MySQL (Kill the mysqld process), then use the command:

Mysqld--skip-grant-tables

(2) Start the database, you can connect the normal

(3) Then clear the root password:

Update Mysql.user Set Password=null

(4) Start the database using the command mysqld

After you have done this, you can log in normally.

2. Problem two: MySQL Error 1130 Host ' localhost ' is not allowed to connect to this MySQL server

Workaround: authorize with authorization statement

GRANT all privileges on * * to ' root ' @ '% ' identified by ' 123456 ' with GRANT OPTION ;
Authorize local access for root.


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

MySQL Login Issues

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.