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
coldplay.xixiOriginal
2020-10-27 15:48:243487browse

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';

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!

Statement:
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