无需客户端即可安装 Mysql-worbench

无需客户端即可安装 Mysql-worbench

嗨,我想安装工作台,所以我正在做

sudo apt-get install mysql-workbench
But this the outcome

    The following extra packages will be installed:
  libdbd-mysql-perl libdbi-perl libgtkmm-2.4-1c2a libmysqlclient18
  libnet-daemon-perl libplrpc-perl libterm-readkey-perl libtinyxml2.6.2
  libzip2 mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common
  mysql-workbench-data python-all python-mysql.connector python-pysqlite2
  python-support
Suggested packages:
  python-pysqlite2-doc python-pysqlite2-dbg
Recommended packages:
  mysql-utilities
The following NEW packages will be installed:
  libdbd-mysql-perl libdbi-perl libgtkmm-2.4-1c2a libmysqlclient18
  libnet-daemon-perl libplrpc-perl libterm-readkey-perl libtinyxml2.6.2
  libzip2 mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common
  mysql-workbench mysql-workbench-data python-all python-mysql.connector
  python-pysqlite2 python-support

但是我已经有一个 mysql 客户端,我不想安装这个新的。我尝试下载 deb,这是控制文件

Depends: libatkmm-1.6-1 (>= 2.22.1), libc6 (>= 2.14), libcairo2 (>= 1.13.0~20140204), libcairomm-1.0-1 (>= 1.6.4), libctemplate2, libcurl3 (>= 7.16.2), libexpat1 (>= 2.0.1), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libgeos-c1 (>= 3.4.2), libgif4 (>= 4.1.4), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.35.9), libglibmm-2.4-1c2a (>= 2.36.2), libgnome-keyring0 (>= 2.22.2), libgtk2.0-0 (>= 2.24.0), libgtkmm-2.4-1c2a (>= 1:2.24.0), libhdf4-0-alt, libhdf5-7, libjasper1, libjpeg8 (>= 8c), libmysqlclient18 (>= 5.5.24+dfsg-1), libncurses5 (>= 5.5-5~), libnetcdfc7, libodbc1 (>= 2.2.11) | unixodbc (>= 2.2.11), libpango-1.0-0 (>= 1.18.0), libpangocairo-1.0-0 (>= 1.14.0), libpangomm-1.4-1 (>= 2.27.1), libpcre3, libpcrecpp0 (>= 7.7), libpng12-0 (>= 1.2.13-4), libpq5, libpython2.7 (>= 2.7), libsigc++-2.0-0c2a (>= 2.0.2), libsqlite3-0 (>= 3.6.0), libstdc++6 (>= 4.6), libtinyxml2.6.2, libuuid1 (>= 2.16), libx11-6, libxerces-c3.1, libxml2 (>= 2.7.4), libzip2 (>= 0.10), odbcinst1debian2 (>= 2.2.11-3), zlib1g (>= 1:1.2.0)

libmysqlclient 是实际的 mysql 客户端吗?无论如何,我尝试通过 dpkg 安装它,但有很多缺失或过时的依赖项。那么首先,如果我已经有一个 mysql 客户端,为什么它还要尝试安装另一个?(我已设置 MYSQL_HOME 并将其与 PATH 联系)?如果我必须使用 dpkg 手动安装所有缺失的软件包。我知道我可以在一个命令中完成,但对于那些已经存在但已过时的软件包呢?

答案1

尝试

$ sudo apt-get download mysql-workbench
Get:1 http://id.archive.ubuntu.com/ubuntu/ trusty/universe mysql-workbench amd64 6.0.8+dfsg-2 [7.449 kB]
Fetched 7.449 kB in 5s (1.409 kB/s)          
$ dpkg --force-all -i mysql-workbench_6.0.8+dfsg-2_amd64.deb
  1. sudo apt-get download mysql-workbench
  2. dpkg --force-all -i FILENAME.deb

编辑:

要升级请使用以下命令:sudo apt-get install mysql-workbench --only-upgrade

相关内容