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.

Installing Oracle Enterprise Linux and similar

MySQL Workbench requires access to the EPEL repository. EPEL is a repository with additional RPM packages that are not part of the core RHEL/OEL distribution. This includes packages (such as tinyxml) that MySQL Workbench requires.

You need to set up the EPEL repository in yum to resolve the required dependencies. For example, using Oracle Linux 6.5 you would:

shell> wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
shell> rpm -ivh epel-release-6-8.noarch.rpm 

shell> yum repolist

Loaded plugins: refresh-packagekit, rhnplugin
repo id                repo name                                          status
epel                   Extra Packages for Enterprise Linux 6 - x86_64      7,124

These instructions also apply to similar Linux distributions such as Red Hat Enterprise Linux, CentOS, and Scientific Linux.

Next, follow the RPM-based installation documentation at Installing RPM packages.



你可能感兴趣的:(MySQL,Linux,centos,DB)