Debian – install thesql-client-5.7 on debian buster

aptdebianMySQL

I would like to know how can I install mysql-client-5.7 on debian buster using apt-get since it is not already present in Debian Buster Package Repository?

Some Background info:

I want to install mysql-client-5.7 on AWS Codebuild (remote server) which I can't SSH into so the only way I can install it there is using apt-get commands.

Best Answer

Debian stopped packaging mysql-client as of buster. You can use apt-get install default-mysql-client which will install mariadb-client-10.3. MariaDB is a fork of MySQL. The client can still be started with the command mysql, and the documentation for it is here. This client should still work fine for MySQL Server 5.7.

For a full list of differences, you can compare mysql-client-5.7 and mariadb-client.

If you really still desire mysql-client-5.7, you'll either have to manually install it, or look for a PPA that has it packaged.

Related Question