MySQL Foundation II

Source: Internet
Author: User

a User Management

1. Create user identified by ' password ';

2. Delete users drop user xxx;

3. Renaming users rename user xxx to xxxx;

4. Modify the current user password setpassword=password (' xxxx ');

5. Modify other user password setpassword for xxx =password (' xxx ');

two Permission System

1. Connection Permissions

2. Action Permissions

Permission level:

1. Global

2. Database

3. Table

4. column

5. Sub-Program

Grant all privileges on * * to ' xxx ' @ '% ' identified by ' xxx ';

Revoke all privileges on * * from ' xxx ' @ ' xxx ' identified by ' xxx ';

three Simple Backup

1. mysqldum–uroot–p libraries that need to be backed up > Backup

2. Source Path / Backup

Four Database Encoding

    1. query mysql supported encodings Span style= "FONT-SIZE:12PX;" >                  Showcharacter set;

2. Enquiry MySQL the encoding used showvariables like ' character% ';


MySQL Foundation II

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.