Mysql permission management: a non-db administrator creates mysql

Source: Internet
Author: User

Mysql permission management: a non-db administrator creates mysql and installs mysql. When a database is created, several accounts are required for permission management. The following is a summary of the four accounts. Www.2cto.com 1. root Account, which is set when the database is installed. Assume that the account password is as follows: root passwd has the highest permissions to manage the database. You can create users, create databases, modify tables, and other permissions. 2. the second account is www.2cto.com create passwd. This account has all permissions to operate on a specific database. grant all on db_name to create @ '%' identified by 'passwd '; '%' indicates that the creat account can connect to the database from any host. the third account db_write passwd grants select, update, delete, insert on db_name to db_write @ '% 'identified by 'passwd'; 4. the fourth account, db_read passwd, grants the read permission account for a specific database select on db_name to db_read @ '%' identified by 'passwd ';

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.