centOS下mysql workbench安裝配置教程
本文為大家分享了mysql workbench安裝配置教程,供大家參考,具體內(nèi)容如下
step0:安裝mysql
在按照workbench之前,先安裝mysql。指令是
yum install mysql mysql-server mysql-libs mysql-server
關(guān)于mysql各個包的功能是:
“mysqlfor the client tools,mysql-serverfor the server and associated tools, andmysql-libsfor 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安裝文件
http://dev.mysql.com/downloads/mirror.php?id=412155
step2:下載好了以后,點擊安裝
雙擊下載的文件,即可安裝
會提示需要額外安裝的package,點擊install就好。
提示需要輸入密碼,輸入root的密碼就好
之后它會自己下載所依賴的package
step3:打開3306端口
因為mysql默認(rèn)使用的是3306端口,而centOS默認(rèn)是不打開此端口的,因此要先打開它,命令是
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
保存設(shè)置
/etc/rc.d/init.d/iptables save
step4:找到安裝的程序,運(yùn)行MySQL workbench
在application->programming下面就可以看得MySQL workbench了
新建一個connection
點擊store in Keychain保存密碼
然后一直O(jiān)K直到創(chuàng)建這個connection就可以了。
可以看到我們新建了一個connection,雙擊打開這個connection。
可以看到,現(xiàn)在整個庫里還是空的,什么東西都沒有。
此時你可以新建database,或者選擇導(dǎo)入也可以。
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持本站。
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。