0

In Debian Desktop 12 if I want to do a remote connection as client to a MySQL Server in other machine in the LAN I need use the mysql command, when it is executed happens the following:

manueljordan@vm163:~$ mysql 
bash: mysql: command not found

If is executed the apt search mysql-client command happens the following:

manueljordan@vm163:~$ apt search mysql-client
Sorting... Done
Full Text Search... Done
default-mysql-client/stable 1.1.0 all
  MySQL database client binaries (metapackage)

default-mysql-client-core/stable 1.1.0 all
  MySQL database core client binaries (metapackage)

Therefore:

  • What is the correct package to install? default-mysql-client or default-mysql-client-core? and Why?

And just being curious:

  • What exists two packages?
  • What is the difference between them?

Thanks in advance

2 Answers 2

4

The package descriptions should answer your questions (apt show default-mysql-client{,-core}):

  • default-mysql-client shows

    This package depends on the default implementation of the client binaries and the additional tools innotop and mysqlreport.

  • default-mysql-client-core shows

    This package depends on the default implementation of the core client files, as used by Akonadi.

So if you want innotop and mysqlreport, install default-mysql-client; otherwise, install default-mysql-client-core.

Note that both packages are metapackages, pulling in the corresponding MariaDB packages. They were added to facilitate migration from MySQL to MariaDB; details are in the release proposal.

5
  • Than you. It seems the first options is better ... because I found Akonadi and MySQL bug Commented Apr 7 at 18:14
  • The first package ends up installing the -core packages anyway, that wouldn’t make a difference. Commented Apr 7 at 18:40
  • How did you get that conclusion? I executed the apt show default-mysql-client command and is indicated Depends: mariadb-client. Or Did you execute other command? Commented Apr 7 at 19:08
  • 1
    default-mysql-client is an empty package depending on mariadb-client, which depends on mariadb-client-core; default-mysql-client-core is an empty package depending on mariadb-client-core. So both packages end up installing mariadb-client-core, and if that causes issues with Akonadi, you’ll run into it either way. However the bug you found was fixed in 2020 so I don’t think it’s relevant. Commented Apr 7 at 20:46
  • Thank You. I confirmed the chain of dependencies of each one. Now I am going to research about: Why is created from the beginning an empty package? What is its purpose to exists Commented Apr 8 at 21:24
0

This answer is the accepted one (with good reason), but I want to mention that the Debian Package Server is a good resource to answer similar questions you may have in the future about the contents of packages and what dependencies a package may have.

The url is: https://packages.debian.org/

(Ubuntu maintains one for Ubuntu distros as well: https://packages.ubuntu.com/)

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.