安装DBDesigner4之路 for linux mint(ubuntu)

This is a remake of my other article, but this focuses on efficiency rather than hand-holding. I've tested it on both Ubuntu (and also Xubuntu) Hardy Heron and Intrepid Ibex. I'm a little tired of waiting for MySQL Workbench, so I decided to give DBDesigner another shot.

What we'll use
I'll be using the RPM package since it'll make DBDesigner4 available to all users

What to Install
Install alien via aptitude (or apt-get, whichever you prefer)
sudo aptitude install alien

What to Download
DBDesigner4-0.5.4-0.i586.rpm
http://fabforce.net/downloadfile.php?iddownloadfile=9

kylixlibs3-borqt-3.0-2.tar.gz
http://prdownloads.sourceforge.net/kylixlibs/kylixlibs3-borqt-3.0-2.tar.gz?download

dbxmda.tar.gz
http://crlab.com/dbx/download.html

MySQL-shared-compat-4.1.9-0.i386.rpm
ftp://ftp.wesmo.com/pub/contributed/RPMS/MySQL-shared-compat-4.1.9-0.i386.rpm

How to Install
For convenience sake, save or move the four files to a temporary directory (e.g. ~/temp) then issue to following commands:

For DBDesigner4
  • sudo alien -i DBDesigner4-0.5.4-0.i586.rpm
For kylixlibs3-borqt-3.0-2.tar.gz
  • tar xzvf kylixlibs3-borqt-3.0-2.tar.gz
  • sudo cp kylixlibs3-borqt/libborqt-6.9.0-qt2.3.so /usr/lib/libborqt-6.9-qt2.3.so

For dbxmda.tar.gz
  • tar zxvf dbxmda.tar.gz
  • sudo cp DbxMda/libsqlmda.so.4.20 /usr/lib

For MySQL-shared-compat-4.1.9-0.i386.rpm
  • sudo alien -i MySQL-shared-compat-4.1.9-0.i386.rpm
*Note: no need to run sudo ldconfig after copying the libs since the last command will run it anyway.

What we Installed
DBDesigner4-0.5.4-0.i586.rpm: the DBDesigner4 application

kylixlibs3-borqt-3.0-2.tar.gz: the libborqt object file, this will prevent "libborqt-6.9-qt2.3.so: cannot open shared object file: No such file or directory"errors

dbdesigner03.png 

dbxmda.tar.gz: the libsqlmy object file, this will prevent "Unable to Load libsqlmy.so" errors



MySQL-shared-compat-4.1.9-0.i386.rpm: some may encounter the "unable to load libmysqlclient.so" error. There's an incompatibility issue with libmysqlclient.so.15, so you'll need to download and install libmysqlclient.so.10.

What we need to Configure
Fonts
Access the fonts settings from Options > DBDesigner Options > Visual Options and set it to Helvetica sized 10

Menu
Here's the menu settings
Name: DBDesigner4
Icon: /opt/DBDesigner4/Gfx/Icon48.xpm
Command: /opt/DBDesigner4/DBDesigner4

Configuration File
Open ~/.DBDesigner4/DBConn_DefaultSettings.ini in a text editor and change the folowing:

GetDriverFunc=getSQLDriverMYSQL
LibraryNameLinux=libsqlmy.so
VendorLibLinux=libmysqlclient.so

to

GetDriverFunc=getSQLDriverMySQL      (写成MySQL不是MYSQL))
LibraryNameLinux=libsqlmda.so.4.20   (or LibraryNameLinux=libsqlmy.so)
VendorLibLinux=libmysqlclient.so.10   (or VendorLibLinux=libmysqlclient.so)

MySQL5 Settings
In order for DBDesigner4 to access your MySQL5 tables, you need to create another user and set its password to an old format DBDesigner4 understands. Login as root (or as a user that can grant privileges) then execute the commands listed below. Change the username, password, and dbname where appropriate:
  • GRANT ALL PRIVILEGES ON dbname.* TO username@'%'
  • SET PASSWORD FOR username@'%' = OLD_PASSWORD('password')
  • FLUSH PRIVILEGES
How to Reverse Engineer your Database
I believe this article is best suited for this section since it includes screenshots as well as walkthroughs.


参考:

http://knightlust.blogspot.jp/2008/11/dbdesigner4-and-mysql5-on-ubuntu.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值