Ubuntu 15.04 opens mysql remote port 3306

Ubuntu 15.04 opens mysql remote port 3306

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

First check if the port is open netstat -an | grep 3306

This is a screenshot of opening port 3306. Previously it was displayed as . . . 127.0.0.1:3306 . . .

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

The bottom line of the screenshot is logout

Restart Ubuntu

Check again whether the port is open netstat -an | grep 3306

At this point port 3306 is open and you can authorize access to mysql using sudo
Command: sudo mysql -u root -p

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

Authorize the root user to all connections: grant all privileges on *.* to 'root'@'%' identified by 'xxxxxx';

The last one is the mysql password

Let the permissions take effect immediately: flush privileges;

Now all operations are completed and you can connect to this MySQL database server from any host.

Solution to MySQL remote connection failure: https://www.jb51.net/article/103770.htm

Centos7.1 firewall open port: https://www.jb51.net/article/103777.htm

CentOS 7 open ports: https://www.jb51.net/article/103773.htm

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • How to enable remote connection to MySQL database
  • Detailed explanation of remote connection to MySQL authorization method
  • Solution to MySQL remote connection loss problem (Lost connection to MySQL server)
  • mysql remote connection database method collection
  • How to configure mysql to allow remote connections
  • The Ultimate Method for MySQL Remote Access Settings
  • Summary of how to set remote access permissions for MySQL database
  • How to solve the problem of slow remote connection to MySQL (mysql_connect opens the connection slowly)
  • How to set up remote access to mysql database
  • Solution to Navicat's inability to remotely connect to MySQL

<<:  Linux concurrent execution is simple, just do it this way

>>:  The implementation process of Linux process network traffic statistics

Recommend

How to uninstall MySQL 8.0 version under Linux

1. Shut down MySQL [root@localhost /]# service my...

Linux directory switching implementation code example

Switching files is a common operation in Linux. W...

Tutorial on installing MySQL 5.7.18 using RPM package

system: CentOS 7 RPM packages: mysql-community-cl...

MySQL sorting principles and case analysis

Preface Sorting is a basic function in databases,...

Analyzing the node event loop and message queue

Table of contents What is async? Why do we need a...

Detailed explanation of Tomcat directory structure

Table of contents Directory Structure bin directo...

Navigation Design and Information Architecture

<br />Most of the time when we talk about na...

Nginx external network access intranet site configuration operation

background: The site is separated from the front ...

Best Practices Guide for Storing Dates in MySQL

Table of contents Preface Do not use strings to s...

jQuery achieves breathing carousel effect

This article shares the specific code of jQuery t...

Graphical tutorial on installing CentOS 7.3 on VMWare

Illustrated CentOS 7.3 installation steps for you...