Remote connection for MySQL

Source: Internet
Author: User
  1. First log on to the remote server, and then log mysql:mysql-u user-p password;
  2. Create and empower users that allow remote logins: Grant all privileges the on database. The table name to username @ ' IP address ' identified by password; (All privileges: Indicates that all permissions are given to the specified user, Of course you can also give users specific permissions, such as Select,insert,update,delete,create, specific permissions between the use of ', ' separated Database. Table Name: represents the specific library and the specific table name to be given permissions, you can also give the user all the database and table operation permissions, using *. *, Root: Indicates to which user to grant permissions, the user can be existing, or can not exist; P Address: Indicates the IP address that allows remote connections, use '% ' if IP is not restricted
  3. Flush Output buffer: flush privileges;
  4. Complete

Remote connection for MySQL

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.