




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、1、安裝jdk2、eclipse 和 tomcat 解壓3、配置環(huán)境變量右擊我的電腦_屬性-高級(jí)_環(huán)境變量(1) path: c:program filesjavajdkl. 6. 0_30bin(2) classpath: c:program filesjavajdkl. 6. 0_30lib(3) java_home: c:program filesjavajdkl. 6. 0_30(4) cataline home: c:apache-tomcat-6. 0. 184、eclipse 設(shè)置(1) 工作區(qū)文件編碼方式設(shè)為utf-8: window->preferences->g
2、eneral->workspace(2) 安裝jrewindow-preferences->java->installedjres->add-next_directory(選擇 jdk 安裝目錄:c:program filesjavajdkl. 6. 0_23),然后選擇 jdk 即可。(3) 設(shè)置jsp編碼方式window->preferences->web->jsp files-encoding(設(shè)為 utf-8)(4) 設(shè)置服務(wù)器window->preferences->server->runtimetomcatenvironm
3、ents->add->apache v6.0next>browsec:apache-tomcat->finish 5、安裝 mysqlmysql5.0安裝圖解1、打開下載的mysql安裝文件mysql-5.0.27-win32.zip,雙擊解壓縮, 運(yùn)行“setup.exe”,出現(xiàn)如下界面:2、按“next”繼續(xù),選擇安裝類型,有“typical (默認(rèn))”、“complete (完全)”、“custom (用戶自定義)”三個(gè)選項(xiàng),我們選擇“custom”,有更多的選項(xiàng),也方便熟悉安裝過程3、在“developer components(開發(fā)者部分)”上左鍵單擊,選擇“
4、thisfeature, and all subfeatures, will be installed on local hard drive.”,即“此部分,及下屬子部分內(nèi)容,全部安裝在本地硬盤上”。在上面的 “mysql server ( mysql 服務(wù)器)”、“client programs ( mysql 客戶端程序)”、“documentation (文檔)”也如此操作,以保證安裝所有文 件。點(diǎn)選“change.”,手動(dòng)指定安裝目錄。4、填上安裝目錄,我的是 “f:servermysqlmysqlserver5.0”,也建議不要放在與操作系統(tǒng)同一分區(qū),這樣可以防止系統(tǒng)備份還原的時(shí)
5、候,數(shù)據(jù)被清空。按“ok”繼續(xù)。5、返回剛才的界面,按“next”繼續(xù)。確認(rèn)一下先前的設(shè)置,如果 有誤,按“back”返回重做。按“install”開始安裝。6、正在安裝中,請(qǐng)稍候,直到出現(xiàn)下面的界面,這里是詢問你是否要 注冊(cè)一個(gè)的賬號(hào),或是使用已有的賬號(hào)登陸, 一般不需要了,點(diǎn)選“skip sign-up”,按“next”略過此步驟。7、現(xiàn)在軟件安裝完成了,出現(xiàn)上面的界面,這里有一個(gè)很好的功能,mysql配置向?qū)В挥孟蛞郧耙粯?,自己手?dòng)亂七八糟的配置my.ini 了,將 “configure the mysql server now” 前面的勾打上,點(diǎn) “finish” 結(jié)束軟件的安裝并啟
6、動(dòng)mysql配置向?qū)?。mysql配置向?qū)?dòng)界面, 按“next”繼續(xù)。8、選擇配置方式,“detailed configuration(手動(dòng)精確配置)”、“standard configuration (標(biāo)準(zhǔn)配置)”,我們選擇 “detailed configuration”,方便熟悉配置過程。選擇服務(wù)器類型,“developer machine (開發(fā)測(cè)試類,mysql占用很少 資源)”、“server machine (服務(wù)器類型,mysql占用較多資源)”、 “dedicated mysql server machine (專門的數(shù)據(jù)庫服務(wù)器,mysql 占 用所有可用資源)”,大家根
7、據(jù)自己的類型選擇了,一般選“server machine”,不會(huì)太少,也不會(huì)占滿。9、選擇mysql數(shù)據(jù)庫的大致用途,“multifunctional database (通用多 功能型,好)”、“transactional database only (服務(wù)器類型,專注于事 務(wù)處理,一般)”、“non-transactional database only (非事務(wù)處理型, 較簡(jiǎn)單,主要做一些監(jiān)控、記數(shù)用,對(duì)mylsam數(shù)據(jù)類型的支持僅 限于non-transactional ),隨自己的用途而選擇了,我這里選擇“multifunctional database”,按 “next” 繼續(xù)。1
8、0對(duì)innodb tablespace進(jìn)行配置,就是為innodb數(shù)據(jù)庫文件選擇 一個(gè)存儲(chǔ)空間,如果修改了,要記住位置,重裝的時(shí)候要選擇一樣的 地方,否則可能會(huì)造成數(shù)據(jù)庫損壞,當(dāng)然,對(duì)數(shù)據(jù)庫做個(gè)備份就沒問 題了,這里不詳述。我這里沒有修改,使用用默認(rèn)位置,直接按“next”繼續(xù)。11、選擇您的網(wǎng)站的一般mysql訪問量,同時(shí)連接的數(shù)目,“decision support(dss)/olap ( 20 個(gè)左右)”、“ online transaction processing(oltp) ( 500 個(gè)左右)”、“manual setting (手動(dòng)設(shè)置,自己 輸一個(gè)數(shù))”,我這里選 “deci
9、sion support(dss)/olap)”,按 “next” 繼續(xù)12、是否啟用tcp/ip連接,設(shè)定端口,如果不啟用,就只能在自己 的機(jī)器上訪問mysql數(shù)據(jù)庫了,我這里啟用,把前面的勾打上,port number: 3306,在這個(gè)頁面上,您還可以選擇“啟用標(biāo)準(zhǔn)模式”(enable strict mode),這樣mysql就不會(huì)允許細(xì)小的語法錯(cuò)誤。如果您還是 個(gè)新手,我建議您取消標(biāo)準(zhǔn)模式以減少麻煩。但熟悉mysql以后, 盡量使用標(biāo)準(zhǔn)模式,因?yàn)樗梢越档陀泻?shù)據(jù)進(jìn)入數(shù)據(jù)庫的可能性。 按“next”繼續(xù)。13、這個(gè)比較重要,就是對(duì)mysql默認(rèn)數(shù)據(jù)庫語言編碼進(jìn)行設(shè)置,第 一個(gè)是西文編碼
10、,第二個(gè)是多字節(jié)的通用utf8編碼,都不是我們通用 的編碼,這里選擇第三個(gè),然后在character set那里選擇或填入“gbk”, 當(dāng)然也可以用“gb2312”,區(qū)別就是gbk的字庫容量大,包括了 gb2312 的所有漢字,并且加上了繁體字、和其它亂七八糟的字一一使用mysql 的時(shí)候,在執(zhí)行數(shù)據(jù)操作命令之前運(yùn)行一次“set names gbk;”(運(yùn) 行一次就行了,gbk可以替換為其它值,視這里的設(shè)置而定),就可 以正常的使用漢字(或其它文字)了,否則不能正常顯示漢字。我這 里選的“gb2312”,按“next”繼續(xù)。14、選擇是否將mysql安裝為windows服務(wù),還可以指定serv
11、ice name (服務(wù)標(biāo)識(shí)名稱),是否將mysql的bin目錄加入到windows path(加 入后,就可以直接使用bin下的文件,而不用指出目錄名,比如連接,“mysql.exe -uusername -ppassword;,就可以了,不用指出 mysql.exe 的完整地址,很方便),我這里全部打上了勾,service name不變。 按“next”繼續(xù)。這一步詢問是否要修改默認(rèn)root用戶(超級(jí)管理)的密碼(默認(rèn)為空),“new root password”如果要修改,就在此填入新密碼(如果是重裝,并且之前已經(jīng)設(shè)置了密碼,在這里更改密碼可能會(huì)出錯(cuò),請(qǐng)留空,并 將“modify sec
12、urity settings”前面的勾去掉,安裝配置完成后另行修 改密碼),“ confirm (再輸一遍)”內(nèi)再填一次,防止輸錯(cuò)。 “enable root access from remote machines (是否允許 root 用戶在其它 的機(jī)器上登陸,如果要安全,就不要勾上,如果要方便,就勾上它)”。 最后“create an anonymous account (新建一個(gè)匿名用戶,匿名用戶 可以連接數(shù)據(jù)庫,不能操作數(shù)據(jù),包括查詢)”,一般就不用勾了,設(shè) 置完畢,按“next”繼續(xù)。確認(rèn)設(shè)置無誤,如果有誤,按“back”返回檢查。按“execute”使 設(shè)置生效。設(shè)置完畢,按“fi
13、nish”結(jié)束mysql.的安裝與配置一一這里有一個(gè)比較常見的錯(cuò)誤,就是不能“start service”,一般出現(xiàn)在以前有安裝 mysql的服務(wù)器上,解決的辦法,先保證以前安裝的mysql服務(wù)器徹底卸載掉了;不行的話,檢查是否按上面一步所說,之前的密碼是否 有修改,照上面的操作;如果依然不行,將mysql安裝目錄下的data 文件夾備份,然后刪除,在安裝完成后,將安裝生成的data文件夾 刪除,備份的data文件夾移回來,再重啟mysql服務(wù)就可以了,這種 情況下,可能需要將數(shù)據(jù)庫檢查一下,然后修復(fù)一次,防止數(shù)據(jù)出錯(cuò)。 設(shè)置環(huán)境變量!clcr on-an ken in the ht belo
14、w to change how a feature is irstdfed.o-wsql serverl±jclient prcgrmsmy5ql instance managerdocument次ionb x -1::-vfl:c< :j-l':«r?-:sfeature description nmpnnmnh i hy dvd«dpf5.d this feature vill be installed, on lecal hard jriv«e_jo this feature, and all subfsaturs, nill le
15、installed, on local hard drthis feature will be installed, to rrn frm network ellu.dll lk 0 tkx s £e4.<kix-e. ar&d all suk£1s, 、ill le xztsi.lled. io voxt fx-enn tlethis fentnre will be jjtstalled. *hen required.x tlii£e<l.«ix e irill aiul "be tt/<ai.lalle. yeb
16、i<ad: ii caweiitswl server 5. 0 - setap vxchange current destination folderbrow© to the destmanon folder.look in:| cj mysql server e.ofolder name:progrgm fileswygqlmysql server 5.0ok | canedcharge.iq11ysql scrrcx 5.0 sctip vicudlcustom setup5clcd the program features you want nstaled.cltr on
17、 an ken in the ht below to change how a feature is irstaled.mysqt serverl±j -l.cbent programsmysqt instance managerdocumentationr1 |司,cutadll lu;feature description cnmpnn-ntx icah hydevetoperi.ihs feature rwjulres okb on ycur hard drixe. it has 3 of 3 subfeatures selected. the sdrfmtiwcs requi
18、re 27mb on ycur hatd drisc.f:5ervermy5qlmysql serve,5.0itsql server 5. o setup vizardready to install the programthe /vizard is ready to begin inskalationif ycu want to review or change cny of your installation settings, dick back clickcancel to exit:he wfeard.current setings:setup type:zustoripc ai
19、noton r ddaiz:seivermysql*(wysql setter 5.0yqli scztcr £2x21 oacc coafieur otion ti z<rdmysql server instance covirigurdticnconfigure the mysql serve 5.0 server instance,2dpleace select a configuration type.detailed configuration tfc cl>ju« ll lisluiifiyurdjuii lype lu uedle .lie upl
20、iiiml server selup fur 二;this: machine.廣 standard configurationr use this onl>» on machines thet do rot already have a mysql sbver 卜 y installation. this will use d qenerl cur pose confiauration for theserve* that can be tuned manually.<back i |r 臟5 cancel)rsql server iastuice coafiwratio
21、tt tiztf dmysql server instance cofifiguraticnconfigure the mysql 5erv 5.0 server instance,ple»e select the database usage.瞻參參參參參暴參參麵參參參參參*參參參mb*參參參參參hultihnctiond oatdboscgeneral purpose dotoba3c>. thb wl optvnicc the server fa the use of che fast tranmction-cl ir<nco8 stwage engine -and
22、 the high speed mylsam c ter-ago ongin<.c iranrrmnal dlahap onlyoptimized for applicakion servers and kransaetiondl wsb applications. this v«ki male enrodb the main storage engine. note:hat the> j - myi5am engine can still be used.c non-transactional database only5uced for smple web appb:
23、ations, momcoring cr loggng applicacwns as well as analysis progzams. only the ncn-trnsacticnal m/isam storage engne will be activated.mysql server instance configurationconfigure khe mysql server 5.0 server instance.plea$e select the defajfc character setstandard character setmakes latin 1 the defa
24、ut charset. this character set b suited for engllci and other west european languagec.best support for multilingualism"*1akc utf8llit? ikfduh j idrdiler tib h> llit: rcluiiiiieiijcd 二harazker set for storing text in many different larguages.manu-al select cd oclaulk character 5ek / collation
25、jn°imsc spcdfy tfic character set to use. character set:|sq9mysql server instance connquroticnconfigure the mysql 5ervt 5.0 server instance.please set the security options.7 modify security settingsenter the roct passwordretype the password.new root password:confirm:7 snatfe root access from rerrote nwchnes:參 *«*»«* *»*«* m 瞻 z廠 cr&at© an anonyrro(j5 arcountab the option 仍iii create an nenymou? cccunt on this server. please yjl note t-«t
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度汽車美容店技師專業(yè)用工合同示范文本
- 二零二五年度戶外廣告牌租賃與廣告效果評(píng)估協(xié)議
- 2025年度林業(yè)砍樹與生態(tài)保護(hù)基金管理協(xié)議
- 二零二五年度5G通信設(shè)備合作誠意金合同
- 2025年度碼頭港口集裝箱拼箱與拆箱服務(wù)合同
- 二零二五年度房屋租賃合同租賃期限終止協(xié)議
- 二零二五年度農(nóng)村土地租賃與農(nóng)業(yè)廢棄物資源化利用合作合同
- 2025年度高端商務(wù)區(qū)臨時(shí)保安服務(wù)合同
- 二零二五年度文化創(chuàng)意產(chǎn)品開發(fā)合同自行解除的創(chuàng)意保護(hù)與知識(shí)產(chǎn)權(quán)
- 2025年江西貨運(yùn)從業(yè)資格證模擬版本
- 2016-2023年揚(yáng)州市職業(yè)大學(xué)高職單招(英語/數(shù)學(xué)/語文)筆試歷年參考題庫含答案解析
- 2024年時(shí)政考題及答案(200題)
- 縣城生活垃圾填埋場(chǎng)滲濾液兩級(jí)DTRO處理設(shè)備采購及安裝項(xiàng)目招投標(biāo)書范本
- 《竹里館》-(共32張)課件
- 轉(zhuǎn)爐干法除塵技術(shù)介紹
- 機(jī)械設(shè)計(jì)傳送帶設(shè)計(jì)
- 圖解國家數(shù)據(jù)局《“數(shù)據(jù)要素×”三年行動(dòng)計(jì)劃(2024-2026 年)(征求意見稿)》
- 老年人預(yù)防跌倒健康宣教
- GB/T 43526-2023用戶側(cè)電化學(xué)儲(chǔ)能系統(tǒng)接入配電網(wǎng)技術(shù)規(guī)定
- 小組合作學(xué)習(xí)班級(jí)評(píng)價(jià)表
- 某公司新員工入職登記表格
評(píng)論
0/150
提交評(píng)論