mysql error 10061

Can’t connect to MySQL server on ‘localhost:3306’ (10061)

Search and enter cmd in the lower right corner of the computer

insert image description here
1. First find the bin path in mysql
and switch to D: cd /mysql/bin
insert image description here
2. Execute the command mysql -uroot -p and enter the database password
3. Execute mysqld --console
insert image description here
4. Reconnect to mysql in navicat
insert image description here

Guess you like

Origin blog.csdn.net/m0_47578678/article/details/131677384