Can't connect to remote MySQL server Error 2003 (HY000) - mysql

Sorry but I started this thread because I couldn't found a solution.
I'm using MySQL Router and InnoDB Cluster to deploy a sandbox cluster. I've followed the documentation see here and here , but when I try to connect by mysqlsh --uri root#localhost:6446, it outputs this following error:
MySQL Error 2003 (HY000): Can't connect to remote MySQL server for client connected to '127.0.0.1:6446'
What am I missing?

Maybe you can check the myrouter log?
In my log it shows the following:
Failed connecting with Metadata Server mysql-db1.mjdh.local:3308: Unknown MySQL server host 'mysql-db1.mjdh.local' (110) (2005)
So I write it in hosts and the problem missed.

Related

MySQL Workbench 8.0.26 data export SSL connection error 2026

I'm using MYSQL Workbench version 8.0.26 in my server dump in version 5.6.10. I already have the option in the Manage Server Connection "Use SSL = NO", but whenever i connect into it and try to EXPORT DATA, the process fails and the following error is presented:
mysqldump: Got error: 2026: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol when trying to connect
Already tried to reinstall or disabling the SSL again, but no success, still the same error, does anyone have any clue what can it be?

[MySQL][ODBC 5.3(a) Driver]Can't connect to MySQL server

I have difficulty connecting to MySQL server from Tableau Server.
The error message is:
[MySQL][ODBC 5.3(a) Driver]
Can't connect to MySQL server on XYZ.
Unable to connect to the MySQL server "xyz".
Check that the server is running and that you have access privileges to the requested database
I have installed MySQL ODBC 5.3 Driver from tarball distribution in Ubuntu OS, and whitelisted the IP address of Tableau server in MySQL server.
What could be the possible causes for this? And is there any way that I check the ODBC connector was properly installed?
Any suggestion/comments are much appreciated!
Reasons, you could not connect could be different. But the error you've get asks you to check if server is running. It means, it could not find server.
The reasons, it could not find server, could be:
Server is down (Check its status by systemctl status mysql)
Server is not listening on some port your app connects to
Server is behind firewall (sudo ufw allow mysql command execution required to solve it in this case)
Your user does not have permissions to access that database, as it states in the error

Problems connecting Laravel to a remote MySQL database: "Lost connection to MySQL server at handshake" and "MySQL server has gone away"

I got this problem where I have developed a Laravel application which uses or connects to a external database.
I have copied all Laravel files in a CentOS server that needs to connect to a MySQL database that is located in another (Ubuntu) server.
Locally, I didn't have any trouble with Laravel Homestead.
But now the Laravel app throws the following error:
SQLSTATE[HY000] [2006] MySQL server has gone away
And if I try to connect to the external database from the CentOS terminal,
$ mysql -h xxx.xxx.xxx.xxx -P 3306 -u user4laravel -p
I get this other error:
ERROR 2013 (HY000): Lost connection to MySQL server at 'handshake:
reading inital communication packet', system error: 11
Notes: I connect to that server via SSH Tunnel with SSH-KEY and passphrase. Do I have to create a tunnel connection?
How do I make it persistent? Is this practical? Or ...
Does anybody know how to solve this or a workaround?

ERROR 2003 (HY000): Can't connect to MySQL server on 'xx.xx.xx.xx.' (60)

ERROR 2003 (HY000): Can't connect to MySQL server on 'xx.xx.xx.xx.' (60)
I'm getting this error when trying to connect to this server remotely.
I recently hard rebooted my server and I'm guessing I haven't started something I need to.
I'm running Ubuntu 14.10
Mysql is up and running. All the sites that use this db are up and running. I can also log into the server and admin the db. But I prefer using a mysql client (navicat) for admin.
Prior to this reboot I was able to connect to this server remotely (navicat) for administration.
I have the appropriate entries in the mysql.user table (as I've said, I was able to connect remotely at one point)
my.cnf file:
#skip-external-locking
#bind-address = 0.0.0.0
Any clue as to what might be preventing connection
This error tells you that client can not reach the server, not that server is not operational. Maybe the address has changed (dhcp?), or port is blocked...

mySQL command line works but ODBC and workbench do not

I am trying to test a connection to a mySQL database running on a remote linux server. I am running Windows 7 and have mySQL installed on my machine as well as the 32-bit ODBC driver. I can connect from the DOS command prompt with no problems. But I cannot connect using mySQL workbench or with ODBC (from MS Access).
In MySQL workbench my error is:
Your connection attempt failed for user 'username' from your host to server at 'x.x.x.x:x': Unknown MySQL server host 'x.x.x.x' (0)
In MS Acess (ODBC driver) my error is:
Connection faile:[HY000][MySQL][ODBC 5.2(w) Driver]Can't connect to MySQL server on 'x.x.x.x' (10061)
I've searched stackoverflow extensively and I found lots of people who can't get ANY connection to work. But I know I can log in from my computer. Could it be something other than ports?
Please make sure you are using correct ip address in MySQL workbench to connect to your mysql database