Ubuntu Open MySQL remote 3306 port of the detailed

Source: Internet
Author: User

Recently in the play Ubuntu, loaded php+mysql environment, with Navicat connection MySQL found how also not connected, even if the root set to% after still invalid, so found that the MySQL 3306 port is not open to the outside world, find the reason to solve it!

1, first see if the port is open Netstat-an|grep 3306

The 3306 ports shown in the above illustration are: 127.0.0.1 represents a local

2, open the MySQL configuration file sudo vim/etc/mysql/mysql.conf.d/mysqld.cnf

Unregister bind-address = 127.0.0.1

Screenshot of the winning Red Line place

3, restart the Ubuntu system

Execute Netstat-an|grep 3306 again

is not found has changed, in the use of navicat try it!

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.