系統(tǒng)下載、安裝、激活,就到系統(tǒng)天地來!

所在位置: 首頁 — 系統(tǒng)文章 — 軟件教程

centOS系統(tǒng)中下安裝mysql workbench詳細(xì)步驟

作者:系統(tǒng)天地 日期:2022-05-03

MySQL 工作臺是為開發(fā)人員,DBA和數(shù)據(jù)庫架構(gòu)師而設(shè)計的統(tǒng)一的可視化工具。MySQL 工作臺提供了先進(jìn)的數(shù)據(jù)建模,靈活的SQL編輯器和全面的管理工具。MySQL工作臺可在Windows,Linux和Mac上使用,MySQL Workbench是一款專為MySQL設(shè)計的ER/數(shù)據(jù)庫建模工具。

step0:安裝mysql

在按照workbench之前,先安裝mysql。指令是

yum install mysql mysql-server mysql-libs mysql-server

關(guān)于mysql各個包的功能是:

“mysql for the client tools, mysql-server for the server and associated tools, and mysql-libs for the libraries. The libraries are required if you want to provide connectivity from different languages and environments such as Perl, Python and others.”

用yum指令安裝的好處是比較方便,壞處是一般yum指令安裝的版本都比最新版稍微落后些……

terminal提示complete以后,就說明安裝完了。mysql的配置文件被安裝到/etc/my.cnf,mysql server的啟動腳本被安裝到/etc/init.d/mysqld

官方說明:

“A sample configuration file is installed into /etc/my.cnf. An init script, to start and stop the server, will have been installed into /etc/init.d/mysqld. ”

啟動MySQL server的命令是:

root-shell> service mysqld start

如果想在centOS開機(jī)時自動啟動MySQL server,那么可以使用指令

root-shell> chkconfig --levels 235 mysqld on

mysql和 mysq lserver裝好以后就可以裝workbench了。

step1:到mysql的官網(wǎng)下載workbench安裝文件

step2:下載好了以后,點(diǎn)擊安裝

雙擊下載的文件,即可安裝

會提示需要額外安裝的package,點(diǎn)擊install就好。

提示需要輸入密碼,輸入root的密碼就好

之后它會自己下載所依賴的package

step3:打開3306端口

因為mysql默認(rèn)使用的是3306端口,而centOS默認(rèn)是不打開此端口的,因此要先打開它,命令是

/sbin/iptables -I INPUT -p tcp --dport 3036 -j ACCEPT

保存設(shè)置

/etc/rc.d/init.d/iptables save

step4:找到安裝的程序,運(yùn)行MySQL workbench

在application->programming下面就可以看得MySQL workbench了

新建一個connection

點(diǎn)擊store in Keychain保存密碼

然后一直O(jiān)K直到創(chuàng)建這個connection就可以了。

可以看到我們新建了一個connection,雙擊打開這個connection。

可以看到,現(xiàn)在整個庫里還是空的,什么東西都沒有。