MySQL allows remote IP access

Source: Internet
Author: User

By default, the user rights within the MySQL database Mysql,user table in Linux are only allowed to land on localhost. Need to change permissions:

Mysql> Grant all privileges on * * to ' root ' @ '% ' identified by ' password ' with Grant option; (% means all external machines, if a certain machine is specified, change% to the corresponding machine name; ' Root ' means the user name to be used.

mysql> flush Privileges; (Run as a sentence to take effect, or restart MySQL)

Query OK, 0 rows affected (0.03 sec)

To view the permissions of a user:

Mysql>use MySQL;

Mysql> select Host,user from user;

| % | Root | (surface root can be accessed by external IP)

thanks:http://blog.csdn.net/shunzi19860518/article/details/5057657

MySQL allows remote IP access

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.