Install mysql-workbench diatas mariadb

Menggunakan ubuntu, jika ingin install mysql-workbench dipastikan akan tidak bisa karena akan memberikan error seperti ini

andri@perjuangan:~/Downloads$ sudo apt-get install mysql-workbenchReading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mysql-workbench : Depends: mysql-client
E: Unable to correct problems, you have held broken packages.
andri@perjuangan:~/Downloads$

Screenshot from 2015-12-28 22:46:56

Solusinya adalah

  1. Download versi community dari siniĀ 
  2. dpkg-deb -x mysql-workbench-community-6.*.deb tmp_mysql-workbench
  3. dpkg-deb --control mysql-workbench-community-6.*.deb tmp_mysql-workbench/DEBIAN
  4. sed -i -e 's/mysql-client//' tmp_mysql-workbench/DEBIAN/control
  5. dpkg -b tmp_mysql-workbench mysql-workbench-community_patched.deb
  6. sudo dpkg -i mysql-workbench-community_patched.deb
  7. Jika no 6 tidak bisa dan bilan ada error dependencies maka lakukan sudo apt-get -f install, setelah itu ulangi no. 6

Semoga berhasil

 

UPDATE:

Dari repo pun mysql-workbench bisa digunakan untuk akses ke mariaDB, syaratnya pada lokal install mysql-server dulu.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.