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.