From an SQL section of extmail, create a user permission Library

Source: Internet
Author: User
Code
Use MySQL;
/* Readonly user & password */
/* Clean user if exists */
Delete from user where user in ('extmail', 'webman ');
Delete from DB where user in ('extmail', 'webman ');

Insert into user (host, user, password) values ('localhost', 'extmail', password ('
Extmail '));
Insert into dB (host, DB, user, select_priv) values ('localhost', 'extmail', 'extm
AIl ', 'y ');

/* Extman read/write user & password */
Insert into user (host, user, password) values ('localhost', 'webman ', password (' W
Ebman '));
Insert into dB (host, DB, user, select_priv, insert_priv, update_priv, delete_pr
Iv) values ('localhost', 'extmail', 'webman ', 'y ');
Flush privileges;

/* Readonly user */
Grant usage on extmail. * To extmail @ localhost;
Grant select, update on extmail. * To extmail @ localhost;

/* Read/write user */
Grant usage on extmail. * To webman @ localhost;
Grant select, insert, delete, update on extmail. * To webman @ localhost;
Create Database extmail;
Use extmail;

/* Table Structure for table manager */
Create Table Manager (.

From an SQL section of extmail, create a user permission Library

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.