How to remotely connect to mysql and enable remote connection for mysql

Source: Internet
Author: User

In many cases, mysql only requires local connection, that is, local connection (the server itself). This is also the case by default, and remote connection is not supported by default.
But sometimes, when we need to separate mysql from a host or database and put it on another machine, we need to use remote connection, that is, network connection.

Two methods are required to enable remote connection.
1. Enable the remote connection of mysql itself. Simply put, you can use IP address, domain name, or "%" as the host name when creating a mysql user. "%" indicates all, that is, anyone can connect to the machine. If there is a user password, you can also restrict IP addresses and domain names.
Enabling remote connection is not secure. However, you only need to set a complicated password.

2. Enable the firewall port of the server system. If there is a firewall limit, mysql port is 3306.

After the above two operations, you can connect remotely.
If not, check carefully.
The operation setting method on the wdcp background is visible.
How to enable or set mysql remote connection in wdcp

Reprinted Please note: wdlinux Knowledge Base
Connection: http://www.wdlinux.cn/bbs/thread-3898-1-1.html

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.