Mysql opens remote port 15.04 and port 3306 in ubuntu 15.043306.

Source: Internet
Author: User

Mysql opens remote port 15.04 and port 3306 in ubuntu 15.043306.

Ubuntu 15.04 opens mysql remote port 3306. All of the following operations are performed in the terminal.

First, check whether netstat-an | grep 3306 is enabled on the port.

This figure shows that port 3306 is enabled and is displayed as... 127.0.0.1: 3306...

Open the mysql configuration file vi/etc/mysql. conf. d/mysqld. cnf
Unregister bind-address = 127.0.0.1

The bottom line is logged out.

Restart ubuntu

Check whether netstat-an | grep 3306 is enabled on the port again.

Port 3306 is enabled.
Then you can authorize access to mysql to use sudo
Command: sudo mysql-u root-p

Enter the local password for the first time and the mysql password for the second time

Grant the root user permission to the connection: grant all privileges on *. * to 'root' @ '% 'identified by 'xxxxxx ';

The last one is the mysql password.

Apply permissions immediately: flush privileges;

The operation is complete. You can connect to the mysql database server on any host.

MySQL remote connection cannot solve: http://www.bkjia.com/article/103770.htm

Centos7.1 open port firewall: http://www.bkjia.com/article/103777.htm

CentOS 7 Open-Port: http://www.bkjia.com/article/103773.htm

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.