MySQL Rights Management

Source: Internet
Author: User

Yesterday just installed MySQL, playing a very happy, today is not linked, the error is:

Root user does not have permissions

Flipping through some articles, looking at the inconvenient, I briefly summed up:

One, add an account

The account is: test; the password is: 123456

Insert into Mysql.user (Host,user,password,ssl_cipher,x509_issuer,x509_subject) VALUES (

After the login is successful, no permissions are found for the target database, next:

Ii. Assigning permissions

Grant all privileges the mydays.* to [e-mail protected] identified by ' 1234 ';

Third, re-login

Mysql-h192.168.1.102-utest-p ' 1234 '

Results:

 for help. Type ' \c ' to clear the current input statement.mysql> show Databases; +--------------------+| Database           |+--------------------+| information_schema | | mydays             | | Test               |+--------------------+3 rows in Set (0.01 sec)

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.