centos系統安裝mysql workbench


一、Workbench是什么?

Workbench是MySql圖形化的管理工具,可以在Workbench里輸入MySql的語句,這可能更適合大多數人的視覺,有些操作更能更簡單化

 

二、環境:

試驗環境1:Linux centos7.2

 

三、下載

下載地址:

https://dev.mysql.com/downloads/workbench/

 

Centos系統選擇:

 

四、安裝

通過FTP工具,將安裝包上傳至Linux服務器之后,執行安裝命令

命令:rpm -ivh mysql-workbench-community-8.0.18-1.el7.x86_64.rpm

 

安裝的時候提示以下錯誤:

[root@vm1 soft]# rpm -ivh mysql-workbench-community-8.0.18-1.el7.x86_64.rpm 
warning: mysql-workbench-community-8.0.18-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
	gnome-keyring is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	gtk3 is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	gtkmm30 is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libGL.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libGLU.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libICE.so.6()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libSM.so.6()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libXext.so.6()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libatk-1.0.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libatkmm-1.6.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libcairo-gobject.so.2()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libcairo.so.2()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libcairomm-1.0.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libfontconfig.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libgdk-3.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libgdk-x11-2.0.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libgdkmm-3.0.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libgiomm-2.4.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libglibmm-2.4.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libgtk-3.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libgtk-x11-2.0.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libgtkmm-3.0.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libpango-1.0.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libpangocairo-1.0.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libpangoft2-1.0.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libpangomm-1.4.so.1()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libsecret is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libsecret-1.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libsigc-2.0.so.0()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libzip is needed by mysql-workbench-community-8.0.18-1.el7.x86_64
	libzip.so.2()(64bit) is needed by mysql-workbench-community-8.0.18-1.el7.x86_64

 

從日志上看濕缺少相應的依賴包,按照錯誤提示,安裝相應的依賴包之后,重新嘗試。

yum install gnome-keyring
yum install gtkmm30
yum install libGLU libICE libSM libsecret libzip
yum install libgdk-x11-2.0.so.0

 

安裝之后,發現libgdk-x11-2.0.so.0及libgtk-x11-2.0.so.0這兩個找不到,

在網上找到了個解決辦法:

yum groupinstall "Development Tools"
yum install gtk+-devel gtk2-devel

 

再次嘗試執行安裝mysql workbench之后成功。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM