MySQL 5.6 depends on client 5.5

I've installed Mysql-(server/client)-5.6 on Ubuntu 14.04 LTS server
but for some programs I need mysql-client (automysqlbackup and postfix for example)

root@server:~# apt-get install automysqlbackup                  
 automysqlbackup : Depends: mysql-client

so:

root@server:~# apt-get install mysql-client mysql-server    
The following packages have unmet dependencies:
 mysql-client : Depends: mysql-client-5.5 but it is not going to be installed
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed

and:

root@server:~# apt-get install mysql-client-5.6 mysql-server-5.6
 mysql-client-5.6 is already the newest version.
 mysql-server-5.6 is already the newest version.

Do I need to install mysql-(server/client)-5.5 alongside 5.6?


Solution 1:

If automysqlbackup can work with mysql-client-5.6 (In other words, if it's binary compatible with mysql-client-5.6).

Is possible to use equivs to create dummy packages for mysql-client, mysql-server. Nothing to loose if it didn't work just uninstall them:

  1. Install equivs:

    sudo apt-get install equivs
    
  2. Generate control file from template:

    equivs-control mysql-client
    
  3. Open mysql-client file for edit. Change name and version if needed:

    ...
    Package: mysql-client
    Version: 5.6
    ...
    
  4. Build then install it:

    equivs-build mysql-client
    sudo dpkg -i mysql-client*.deb
    

Follow same steps for mysql-server.