Questions about MySQL Permissions

Source: Internet
Author: User

Yesterday because the classmate's MySQL database did not know what to do, resulting in the root user can not use the

In particular, the use of root users do not need to enter the password can only see the Infomation_schema table, feel the root authority is missing

But because the machine can't restart, you can't go to MySQL or modify the MySQL password in a way that avoids permissions.

The user table under MySQL is then copied to another library to view permissions

Cp/data/mysql/mysql3306/data/mysql/user.*/data/mysql/mysql3306/data/mysql/hehe/

Chown mysql:mysql/data/mysql/mysql3306/data/mysql/hehe/

And then into the hehe database.

View Permissions Table

Select Host,user from user;

See if you have permission

Questions about MySQL Permissions

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.