当前位置:   article > 正文

Linux | MySQL安装Workbench图形化_mysql workbench linux

mysql workbench linux

环境:rhel8 MySQL8

下载软件包

官网软件包地址:

MySQL :: 下载 MySQL Workbenchicon-default.png?t=N7T8https://dev.mysql.com/downloads/workbench/我这里下载的是 mysql-workbench-community-8.0.24-1.el8.x86_64.rpm

解决依赖

用rpm安装发现缺少依赖

[root@hfj mysql-pkg]# rpm -ivh mysql-workbench-community-8.0.24-1.el8.x86_64.rpm

 配置国内的epel源

图中我所需的依赖很多需要从epel库获取,所以我们给电脑配置国内的epel源

打开/etc/yum.repos.d/epel.repo(如果没配过,这里应该是打开了一个新文件):

[root@hfj mysql-pkg]# vi /etc/yum.repos.d/epel.repo 

写入如下代码:

  1. [epel]
  2. name=Extra Packages for Enterprise Linux $releasever - $basearch
  3. baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch
  4. #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
  5. enabled=1
  6. gpgcheck=0
  7. countme=1
  8. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
  9. [epel-debuginfo]
  10. name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
  11. baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch/debug
  12. #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
  13. enabled=0
  14. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
  15. gpgcheck=0
  16. [epel-source]
  17. name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
  18. baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/SRPMS
  19. #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
  20. enabled=0
  21. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
  22. gpgcheck=0

然后保存退出,yum makecache就可以了 

下载各种缺少的依赖

注意后面的几个提示可能是实际依赖的子包、库,不一定是真正的软件包名,使用yum 的search 命令查询相关的软件包

如果查找不到,可以借助人工智能

具体需要下载的软件包(按报错提示顺序)(最后两个依赖其实在一个包内libzip)

  1. yum install mesa-libGL
  2. yum install proj
  3. yum install python38
  4. yum install libzip

再次安装

  1. [root@hfj mysql-pkg]# rpm -ivh mysql-workbench-community-8.0.24-1.el8.x86_64.rpm
  2. warning: mysql-workbench-community-8.0.24-1.el8.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
  3. Verifying... ################################# [100%]
  4. Preparing... ################################# [100%]
  5. Updating / installing...
  6. 1:mysql-workbench-community-8.0.24-################################# [100%]

启动Workbench

启动页面

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/567629
推荐阅读
相关标签
  

闽ICP备14008679号