Home > Database > Mysql Tutorial > What should I do if mysql 3306 port cannot be accessed?

What should I do if mysql 3306 port cannot be accessed?

coldplay.xixi
Release: 2020-10-29 16:15:47
Original
3490 people have browsed it

Mysql 3306 port cannot be accessed Solution: 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; mysql> update user set host = '% ' ].

What should I do if mysql 3306 port cannot be accessed?

Mysql 3306 port cannot be accessed solution:

Modify the host field value in the user table of the mysql library to localhost The update is %.

Command:

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

Before modification

What should I do if mysql 3306 port cannot be accessed?

After modification

What should I do if mysql 3306 port cannot be accessed?

Restart The mysql service can be accessed.

More related free learning recommendations: mysql tutorial(Video)

The above is the detailed content of What should I 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