MySQL root permissions are controlled and cannot be authorized

Source: Internet
Author: User

A Environment:

MariaDB [(None)]> select version ();

+----------------+

| Version () |

+----------------+

| 5.5.50-|

+----------------+

Two. Engineer feedback Unable to create account

Three Problem Locator

View the user table to determine if an exception exists

No exception, the user exists, root privileges are also in. To view root whitelist permissions by command:

Root permissions are controlled on the MySQL database. Compare the root privileges of the normal library:

It is clear that Root is being charged only on the MySQL library, and the problem of lifting this limitation should be resolved.

Four. Problem Solving Solutions

View Mysql.db and find records of MySQL library

The original idea was to change MySQL to a wildcard%. Compare the soundness with the normal library:

The DB table in the normal library is not a record of the MySQL library. Ok, delete the MySQL record in the DB that appears in the problem library ( don't forget to do the backup before deleting it). after restarting the database, root privileges are restored .

MySQL root permissions are controlled and cannot be authorized

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.