1. 程式人生 > >Linux安裝mysql workbench

Linux安裝mysql workbench

在Linux環境下安裝workbench略有點小麻煩, 下面把自己的安裝過程分享下:

1. Workbench RPM下載     去mysql官網下載workbench rpm安裝包略有點小麻煩,還去買了個VPN. 下面把地址分享下,祝願大家能夠成功下載     http://dev.mysql.com/downloads/file.php?id=457788         http://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-6.3.4-1.el6.x86_64.rpm
2. Workbench RPM安裝
    2.1 RPM安裝           yum install mysql-workbench-community-6.3.4-1.el6.x86_64.rpm
    2.2 通常情況下yum可以幫助你解決依賴問題, 但有時候因為源的問題下載不到需要的包, 新增相關源 EPEL repository(成功):
      wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
      rpm -ivh epel-release-6-8.noarch.rpm

        mysql repository(大家可以嘗試下)

        wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm         rpm -ivh mysql-community-release-el6-5.noarch.rpm     2.3 然後就可以安裝了....

MySQL workbench MySQL官方教程(主要參考下面這一段就夠了):

http://dev.mysql.com/doc/workbench/en/wb-installing-linux.html

Installing RPM packages

On Red Hat-based systems, and other systems that use the RPM package format, you can either download and install RPM packages or use the Yum package manager.

Note

Enterprise Linux systems, such as Oracle Linux and Red Hat, require access to the EPEL package repository. For additional information about installing EPEL, see Installing Oracle Enterprise Linux and similar.

Using the Yum Package Manager

Your Linux distribution includes MySQL Workbench builds where "yum install mysql-workbench" will install their build of the MySQL Workbench package. To use the official MySQL Workbench builds as provided by the MySQL Release team, you must install the official MySQL Yum repository and choose the "mysql-workbench-community" package instead of "mysql-workbench".

  • First, install the MySQL Yum repository as described in the MySQL Yum Repository documentation. For example:

    shell> sudo rpm -Uvh mysql-community-release-el7-5.noarch.rpm
    
  • Next, install MySQL Workbench. You might have multiple Workbench packages available, so choose the "mysql-workbench-community" version. For example:

    shell> sudo yum install mysql-workbench-community
    

Manually Installing a Package

shell> sudo rpm -i package.rpm

package.rpm is the MySQL Workbench package name; for example, mysql-workbench-community-version-1fc10.x86_64.rpm, where version is the MySQL Workbench version number.