Mysql assigns users and permissions to the new database.

Source: Internet
Author: User
Mysql assigns and grants permissions to a new database and several tables, and then assigns users and permissions to the database and table as follows: 1. insert a user data entry to the user table in the mysql database hostusernamepassword. then insert a data link in the database table of the mysql database to create a new user and the relationship between the new database and the new database hostdbusername

Mysql assigns and grants permissions to a new database and several tables, and then assigns users and permissions to the database and table as follows: 1. insert a user data host username password in the user table in the mysql database. insert a data link in the db table of the mysql database to create a new user and the new database. host db username focuses.

Mysql assigns and grants permissions to the new database
Create a database and several tables and assign users and permissions to the database and table as follows:

1. Insert a user data host username password in the user table in the mysql database.

2. Insert a data association in the db table of the mysql database to create a relationship between the user and the new database. host db username focuses on

3. Execute the flush privileges command to refresh the permission (you must refresh the permission)

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.