MySQL Remote connectivity issues

Source: Internet
Author: User

Problem: A new MySQL database is installed in the server, the result is not connected to the remote computer, and prompted "Server connection Error host ' XXX ' is not allowed to connect to this MySQL server".

(The database default port is already open in the case of a firewall)

FIX: MySQL is a newly installed, not open remote connection caused by, that is, remote permissions problems.

GRANT  All Privileges  on *. *  to ' testuser '@ '%' by'testpassword'  with GRANT OPTION;

(Parameter: With GRANT option refers to the ability to give permission to be granted, allowing the person to grant that right to other persons)

(parameter:% refers to any host that can be connected remotely)

(parameter: All privileges refers to assigning all permissions to a specified user)

(Parameter: * * is a full table authorization for all databases.) And Userdata.*, the previous userdata refers to the database name, which represents the full table authorization for the UserData database)

In addition, the blog is very clear: http://www.cnblogs.com/xyzdw/archive/2011/08/11/2135227.html

MySQL Remote connectivity issues

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.