Home >Database >Mysql Tutorial >How to solve the problem that mysql-front cannot be found and cannot connect to MySQL

How to solve the problem that mysql-front cannot be found and cannot connect to MySQL

藏色散人
藏色散人Original
2020-10-28 10:15:003957browse

Mysql-front cannot find the solution: first run the console program as an administrator and connect to mysql; then enter "ALTER USER..."; finally execute "FLUSH PRIVILEGES".

How to solve the problem that mysql-front cannot be found and cannot connect to MySQL

Recommended: "mysql video tutorial"

MySQL-Front cannot connect to MySQL problem

The reason why some users are unable to connect is that the encryption method of MySQL8.0 version is different from the encryption method of previous versions.

Solution: Change the encryption method

(1) Run the console program as an administrator and connect to mysql:

mysql -u root -p

(2) Enter

ALTER USER 'root'@'database address' IDENTIFIED WITH mysql_native_password BY 'database password';

(3) Finally

FLUSH PRIVILEGES

The above is the detailed content of How to solve the problem that mysql-front cannot be found and cannot connect to MySQL. 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
Previous article:What does mysql ddl mean?Next article:What does mysql ddl mean?