![]() Try to isolate the actual problem (is it network related or a config problem?). However, the general idea should be clear now. Point 6 can be a bit more complicated, if your MySQL server is not on the same machine as where the SSH endpoint is or if it has networking disabled or if it uses a different port than what you tried. If you can answer all that with yes there should be no problem connecting to the MySQL server from MySQL Workbench. Can you reach the MySQL server when you are logged in on the target machine (e.g.Can you create an SSH tunnel to the target machine?. ![]() Can you reach the target machine your MySQL runs on?.Do you have a running network adaptor on the machine you run Workbench on? Does it allow TCP/IP connections?.The error message says clearly the MySQL server could not be reached, hence check everything that could block access to it. Help is much appreciated because I already tried everything I was able to research. ssh to the remote machine ( ssh login to mysql server ( mysql -u root -p).When I do, what Workbench is supposed to do Passwords are set, they are typed correctly when logging in. There is no bind-address or skip-networking directive set.Ĥ Make sure you are both providing a password if needed and using theĬorrect password for 127.0.0.1 connecting from the host address you're # The files must end with '.cnf', otherwise they'll be ignored. # * IMPORTANT: Additional settings that can override those from this file! # -print-defaults to see which it would actually understand and use. Create a new connection by clicking the + icon next to MySQL Connections in the main window. # Run program with -help to get a list of available options and with Once you’ve installed MySQL Workbench on your computer, launch the program. # One can use all long options that the program supports. # - "~/.my.cnf" to set user-specific options. # - "/etc/mysql/my.cnf" to set global options, # The MySQL database server configuration file. Nonetheless I tried setting the host to % as a wildcard but that didn't change anything either so I switched back to default localhost. I checked the er table and it says that root has the host: localhost and since MySql-Workbench does an ssh connect to the remote machine and then connects to the MySql-Server, localhost should be fine. Then it gives me a list with things to check.ġ Check that mysql is running on server 127.0.0.1Ģ Check that mysql is running on port 3306ģ Check the root has rights to connect to 127.0.0.1 from your address ![]() Server at 127.0.0.1:3306: Can't connect to MySQL server on Your connection attempt failed for user 'root' from your host to The connection method is: Standard TCP/IP over SSH Remote Machine: Ubuntu 16.04, with MySql-Client 5.7 and MySql-Server 5.7 Local machine: Xubuntu 17.10, with MySql-Workbench 6.3
0 Comments
Leave a Reply. |