Home > Database > Mysql Tutorial > body text

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

藏色散人
Release: 2020-10-30 16:52:43
Original
3872 people have browsed it

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!