MySQL Authorized remote access

Source: Internet
Author: User

When the MySQL administration tool connects to the database, it is prone to problems that cannot be connected.

As shown in the following:

650) this.width=650; "title=" QQ picture 20150824234738.png "Src=" http://s3.51cto.com/wyfs02/M00/71/F4/wKiom1XbPIuA_ D1taac98itsv0q474.jpg "alt=" Wkiom1xbpiua_d1taac98itsv0q474.jpg "/>

In general, MySQL does not grant access to other machines or IP.

So we need to set up permissions in MySQL that can be accessed remotely

① into MySQL

Mysql>mysql-u root-p

mysql>123123 (password)

② authorize remote access and refresh the authorization form;

mysql>grant All privileges on * * to ' root ' @ '% ' identified by ' 123123 ';

Mysql>flush privileges;

③ Exit MYQL

Mysql>exit

Instead of restarting Linux or virtual machines, connect directly with the MySQL database management tool.

This article is from the "I have patience with myself" blog, please be sure to keep this source http://9607474.blog.51cto.com/9597474/1687869

MySQL Authorized 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.