How to turn on MySQL remote account in MySQL Workbench

Source: Internet
Author: User

Grant  All Privileges  on Student.*  to[Email protected]'192.168.119.120'Identified by '123456'; /*The above statement indicates that all permissions to the Discuz database are granted to root, allowing the root user to remotely log on to the 192.168.119.120 and set the root user's password to 123456. The following analysis of all the parameters: all privileges to give all permissions to the specified user, here can also be replaced by assigning a specific permission, such as: Select,insert,update,delete,create,drop, specific permissions between the use ", "Half-width comma-delimited. student.* indicates which table the above permissions are for,student refers to the database, and the following * represents all tables,
This can be inferred from:
All tables for all databases are authorized as "*. *",
All tables in a database are authorized as "database name. *",
A table for a database is authorized as the database name. Table name. Root indicates which user you want to authorize, and the user can be either an existing user or a non-existent user. 192.168.119.120 represents the IP address that allows remote connections, or "%" if you want to limit the IP of the link. 123456 is the user's password. After executing the above statement, execute the following statement before it can take effect immediately. */FlushPrivileges;

How to turn on MySQL remote account in MySQL Workbench

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.