Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why MySQL Workbench shows connection error related to known_hosts?

While connecting to database on remote server I got connection error related to known_hosts file.

It did not ask me to update the known_host file but simply reject to connect.

like image 273
Strabek Avatar asked Feb 13 '15 11:02

Strabek


People also ask

How do I fix MySQL not connected?

ipconfig and then just check the IP address and put it in place of localhost in the previous command. If this still doesn't works then put 127.0. 0.1:3306 . After this, it will prompt to add or save the password , enter a unique password there.

Why do I keep losing connection to MySQL server?

The most common reason for the MySQL server has gone away error is that the server timed out and closed the connection. By default, the server closes the connection after 8 hours if nothing has happened. You can change the time limit by setting the wait_timeout variable when you start mysqld.

Can not connect MySQL workbench?

Check that MySQL is running on address localhost. Check that MySQL is reachable on port 3306 (note: 3306 is the default, but this can be changed). Check the user root has rights to connect to localhost from your address (MySQL rights define what clients can connect to the server and from which machines).


1 Answers

For Windows 10, MySQL Workbench appears to use a known_hosts file in a standard location:

C:\Users\%USERPROFILE%\.ssh\known_hosts

If you are happy that the server fingerprint has changed, you can remove the related line, and try the operation again in Workbench.

like image 136
halfer Avatar answered Sep 28 '22 06:09

halfer