Recently, we updated one system to UBUNTU 20.04 (it has been way backlevel). The new installation includes MySQL at version 8.
One of the functions we've been performing on the retiring system, is to backup a MySQL remote database, owned by a hosting provider, that's running MySQL 5.x. To my surprise, it seems that MySQL 8 client will not connect with MySQL 5 databases due to this bug:
> mysqldump --host=${REMOTE_HOST} --user=${REMOTE_USER} ${REMOTE_DATABASE}
mysqldump: Got error: 1043: Bad handshake when trying to connect
I'm curious how others in this situation deal with this problem.
Upgrading the remote database is not something we can do (The remote one is managed by another agency that doesn't offer MySql 8), nor is downgrading the local one (the advantages of MySQL8 are among our reasons for upgrading.)
What I'd really like to do, is to install just the mysql 5 client into an alternate folder, and use only mysqldump (also mysql) from that folder for this connection and task only. But there seems to be no official UBUNTU way to do this.
I've had a look at (even installed) dbdeployer, but that looks like yet another time-consuming research project with its own learning curve to get it just so... maybe overkill for the minor thing we want to accomplish.
Any suggestions how do deal with this? Clearly it's less a priority for the MySQL developers than for us.