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

MySQL loop inserts tens of millions of data

1. Create a test table CREATE TABLE `mysql_genara...

How to wrap HTML title attribute

When I was writing a program a few days ago, I wan...

Example code for implementing bottom alignment in multiple ways with CSS

Due to the company's business requirements, t...

How to solve the Docker container startup failure

Question: After the computer restarts, the mysql ...

vue-pdf realizes online file preview

This article example shares the specific code of ...

Use Firebug tool to debug the page on iPad

How to debug a page on iPad? When using iOS 5, you...

Install mysql5.7 on Ubuntu 18.04

Ubuntu 18.04 installs mysql 5.7 for your referenc...

Detailed explanation of HTML page header code example

Knowledge point 1: Set the base URL of the web pa...

WeChat applet scroll-view realizes left-right linkage effect

WeChat applet uses scroll-view to achieve left-ri...

SQL-based query statements

Table of contents 1. Basic SELECT statement 1. Qu...

Summary of MySQL slow log related knowledge

Table of contents 1. Introduction to Slow Log 2. ...

A brief introduction to VUE uni-app basic components

1. scroll-view When using vertical scrolling, you...

A few experiences in self-cultivation of artists

As the company's influence grows and its prod...