How to set up MySQL remote access

Source: Internet
Author: User

?? MySQL By default is not able to access the remote machine via the following configuration to enable remote access

On the MySQL server side:

Run the MySQL command into MySQL command mode,

SQL code
    1. mysql> use mysql;   
    2. MySQL >  grant   all   on  *.*  to  [ Email protected] '% '  identified  by   ' admin '   with   grant   option ;   
    3. #这句话的意思  , and agree to any IP address ( %  that means above)   with Admin account    and password (admin) to access this mysql server   ,
    4. #必须加类似这种帐户, capable of remotely landing.   
mysql> use mysql;mysql> grant all on * * to [e-mail protected] '% ' identified by ' admin ' with GRANT OPTION; #这句话的意思. Agree that no matter what IP address (the above is the meaning) of the computer with the admin account  and password (admin) to access the MySQL server# must be similar to this account, talent enough to remotely login.

The root account cannot be remotely logged in and can only be logged on locally

How to set up MySQL remote 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.