
- 類型:數(shù)據(jù)庫(kù)類大。1.7M語(yǔ)言:英文 評(píng)分:6.6
- 標(biāo)簽:
MySQL 工作臺(tái)是為開發(fā)人員,DBA和數(shù)據(jù)庫(kù)架構(gòu)師而設(shè)計(jì)的統(tǒng)一的可視化工具。MySQL 工作臺(tái)提供了先進(jìn)的數(shù)據(jù)建模,靈活的SQL編輯器和全面的管理工具。MySQL工作臺(tái)可在Windows,Linux和Mac上使用,MySQL Workbench是一款專為MySQL設(shè)計(jì)的ER/數(shù)據(jù)庫(kù)建模工具。
step0:安裝mysql
在按照workbench之前,先安裝mysql。指令是
yum install mysql mysql-server mysql-libs mysql-server
關(guān)于mysql各個(gè)包的功能是:
“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的啟動(dòng)腳本被安裝到/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. ”
啟動(dòng)MySQL server的命令是:
root-shell> service mysqld start
如果想在centOS開機(jī)時(shí)自動(dòng)啟動(dòng)MySQL server,那么可以使用指令
root-shell> chkconfig --levels 235 mysqld on
mysql和 mysq lserver裝好以后就可以裝workbench了。
step1:到mysql的官網(wǎng)或者西西軟件園下載workbench安裝文件:http://www.innovatechautomation.com/soft/12194.html
step2:下載好了以后,點(diǎn)擊安裝
雙擊下載的文件,即可安裝
會(huì)提示需要額外安裝的package,點(diǎn)擊install就好。
提示需要輸入密碼,輸入root的密碼就好
之后它會(huì)自己下載所依賴的package
step3:打開3306端口
因?yàn)閙ysql默認(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了
新建一個(gè)connection
點(diǎn)擊store in Keychain保存密碼
然后一直O(jiān)K直到創(chuàng)建這個(gè)connection就可以了。
可以看到我們新建了一個(gè)connection,雙擊打開這個(gè)connection。
可以看到,現(xiàn)在整個(gè)庫(kù)里還是空的,什么東西都沒有。
這時(shí)你可以新建database,或者選擇導(dǎo)入也可以。