Home > Database > Mysql Tutorial > What to do if mysql 3306 port cannot be accessed

What to do if mysql 3306 port cannot be accessed

coldplay.xixi
Release: 2020-08-24 15:12:12
Original
6245 people have browsed it

Mysql 3306 error port cannot be accessed solution: first modify the host field value in the user table of the mysql library to localhost and update it to [%], the code is [mysql> use mysql]; then restart the mysql service access.

What to do if mysql 3306 port cannot be accessed

mysql 3306 error port inaccessible solution:

1. Modify the host field in the user table of the mysql library Values ​​of localhost are updated to %.

Command:

mysql>  use mysql
mysql>  update user set host = '%' where host='localhost';
Copy after login

2. Before modification

What to do if mysql 3306 port cannot be accessed

3.After modification

What to do if mysql 3306 port cannot be accessed

##4. Restart the mysql service to access.

Related learning recommendations:

mysql tutorial

The above is the detailed content of What to do if mysql 3306 port cannot be accessed. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template