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 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 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:
|
<<: Linux concurrent execution is simple, just do it this way
>>: The implementation process of Linux process network traffic statistics
Inline format <colgroup>...</colgroup>...
Search Mirror docker search rocketmq View image v...
◆Add to favorites illustrate Click to add your we...
Use JOIN instead of sub-queries MySQL supports SQ...
Table of contents 1. Custom import in packaging t...
1. Download Go to the Apache official website htt...
Mysql auto-increment primary key id does not incr...
1. Introduction I have taken over a project of th...
Introduction to jQuery The jQuery library can be ...
Flex layout is also called elastic layout. Any co...
1. Install Baidu Eslint Rule plugin npm i -D esli...
In front-end development, $ is a function in jQue...
1. Basic Concepts 1. Sitemesh is a page decoratio...
#docker search #docker pull portainer 1. Download...
Preface In Java programming, most applications ar...