在ubuntu 7.04版本中,下面这个版本的mysql-gui使用时将出现如下错误,这是我在mysql官方提供的参考,具地址如下
http://bugs.mysql.com/bug.php?id=28959,这里提供了解决办法,也就是你需要自己编译才能使用这个工具。错误报告:
tar zxvf mysql-gui-tools-5.0r12-linux-i386.tar.gz
cd mysql-gui-tools-5.0r11b-linux-i386
./mysql-administrator --update-paths
# You get prompted to do this if you run ./mysql-administrator directly
./mysql-administrator
# Supply "Server Hostname", "Username", and "Password" then click "Connect" button.
# Observe the follow messages in the console:
(mysql-administrator-bin:17941): Gtk-WARNING **: Unable to locate theme engine in
module_path: "ubuntulooks",
Fontconfig warning: line 32: unknown element "cachedir"
Fontconfig warning: line 33: unknown element "cachedir"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 18: invalid match target
"scan"
./mysql-administrator-bin: symbol lookup error: /usr/lib/libbonoboui-2.so.0: undefined
symbol: g_type_register_static_simpl
编译:
你需要先安装如下软件包,才能编译
sudo aptitude install libpcre3-dev libmysqlclient15-dev libglib2.0-dev libxml2-dev
libglade2-dev libgtkmm-2.4-dev g++
下载mysql-gui-tools-5.0r12.tar.gz源码,解压,
cd mysql-gui-common
./configure
make
make install
cd ../mysql-administrator
./configure
make
make install
这样,你就可以在ubuntu 7.04下面使用mysql-gui了!