MYSQL Permissions Control

Source: Internet
Author: User

MySQL Authority control system includes 2 aspects:

1. Check if the user can connect

2. Check if the user has permission to perform the action

MYSQL Privilege Level:

1. Global Layer

2. Database tier

3. Surface level

4. Column level

5. Sub-Program level

Authorization command:

GRANT all privileges the on level to user name @ host identified by password; (password of authorized user)

Ex:grant all privileges on * * to ' owen_test ' @ '% ' identified by ' 100 '; (* * means all permissions for all databases)

Revoke permissions:

REVOKE all privileges from ' Owen_zeng ';

MYSQL Connection Authentication

The host here indicates where the host is allowed to connect

1. All hosts '% '

2. Exact host name or IP. Owen_zeng or 172.26.6.x

3. Use the * wildcard character, *_zeng

4. Specify a network segment 192.168.3.2/255.255.255.0

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.