8

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?

5

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.

| improve this answer | |
  • sorry for the delay.. i've tryed youre sollution but i ran into an error with equivs_build mysql-client. sh: 1: cannot open package: No such file sh: 1: defaults: not found – TD_Nijboer Aug 7 '14 at 8:31
  • @TD_Nijboer, :) me too, I was w/out Internet access. sorry I missed a step. see my updated answer. – user.dz Sep 9 '14 at 12:56
  • Worked for me... – Petah Nov 20 '14 at 1:15
  • Worked for me also. Very nice. Any problems I need to watch out for in the future? Will Ubuntu try to upgrade this package or anything? – flickerfly Jun 15 '15 at 15:59
  • 1
    @flickerfly, No. As you see here packages.ubuntu.com/… , mysql-client package available only as version 5.5 in trusty and there will be no major upgrade, so it will never upgrade your local which is version 5.6 – user.dz Jun 15 '15 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.