Solution to MySQL startup successfully but not listening to the port

Solution to MySQL startup successfully but not listening to the port

Problem Description

MySQL is started successfully. Use ps -ef |grep mysql to see the process, as shown below:


You can also log in to the server, as shown below:


But using netstat -antp| grep 3306 you can see that there is no listening port.


Checking the MySQL configuration file, the port has not changed.


Solution

After checking, it was found that skip-networking was used in the configuration file. It can be seen that the function of this option is not to listen to the port, and users on the same host are connected through sockets. External hosts will not be able to connect because there is no listening port.


After commenting out skip-networking , restart MySQL and you can see the port listening.

Summarize

The above is the full content of this article. I hope that the content of this article can bring some help to your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support of 123WORDPRESS.COM.

<<:  Sample code for implementing menu permission control in Vue

>>:  Gitlab practical tutorial uses git config for related configuration operations

Recommend

How to deploy Angular project using Docker

There are two ways to deploy Angular projects wit...

Spring Boot layered packaging Docker image practice and analysis (recommended)

Table of contents 1. Prepare the springboot proje...

MAC+PyCharm+Flask+Vue.js build system

Table of contents Configure node.js+nvm+npm npm s...

Detailed explanation of JavaScript upload file limit parameter case

Project scenario: 1. Upload file restrictions Fun...

Detailed explanation of .bash_profile file in Linux system

Table of contents 1. Environment variable $PATH: ...

Vue Element front-end application development: Use of API Store View in Vuex

Table of contents Overview 1. Separation of front...

How to install mysql on centos and set up remote access

1. Download the mysql repo source $ wget http://r...

Differences between proxy_pass in two modules in nginx

1. The proxy_pass directive of the 1.ngx_stream_p...

Detailed steps for installing MySQL using cluster rpm

Install MySQL database a) Download the MySQL sour...

Vue3 gets the current routing address

Correct answer Using useRouter : // router path: ...

W3C Tutorial (14): W3C RDF and OWL Activities

RDF and OWL are two important semantic web techno...

How to add sudo permissions to a user in Linux environment

sudo configuration file The default configuration...