MySQL----A description of the Information-schema database-related permissions.

Source: Internet
Author: User

The INFORMATION_SCHEMA database in MySQL is particularly notable for the following points.

1, even a newly created user, that is, this user has only one usage permission. It can view some of the tables in Informatoin_schema.

2. Try to grant the grant select on Information_schema.* to ' testuser ' @ ' localhost '; #这样总是会出错, probably MySQL has a similar setting by default.

3, because by default the user can only see some of the tables in Information_schema, if you want to refer to the user can view all the tables, it is necessary to grant the process permission to the line.

Grant Process on * * to ' testuser ' @ ' localhost ';

For example, cannot execute: SELECT * from innodb_locks; hint: ERROR 1227 (42000): Access denied; You need (at least one's) the PROCESS privilege (s) for this operation

4. MySQL also has a database similar to information_schema it is test. Be careful about the permissions of test.

MySQL----A description of the Information-schema database-related permissions.

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.