"BUG & Problem" MySQL Remote connection failed

Source: Internet
Author: User
Tags mysql client mysql command line

Problem description

Connect to the remote database with the MySQL client on the cloud host today to indicate that the connection failed. Tip the Host "62.183.38.xx" is not allow to connect the MySQL server.

Host is the IP of my extranet. Shutting down the cloud host firewall and starting the MySQL service are not valid.

Solution Solutions

After checking the information of relevant netizens, find the reason, because MySQL default does not open remote connection permissions. So open the permissions in the MySQL command line, solve the problem!

MySQL > GRANT all privileges on * * to ' root ' @ '% ' identified by ' your password ' with GRANT OPTION

This command is the root user that opens all permissions for *. * (all databases) to %(any IP)

  • Resources
  • Http://www.jb51.net/article/24508.htm

"BUG & Problem" MySQL Remote connection failed

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.