




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
實(shí)驗(yàn)訓(xùn)練4:數(shù)據(jù)庫系統(tǒng)維護(hù)1.數(shù)據(jù)庫安全性【實(shí)驗(yàn)6-1】建立賬戶:創(chuàng)建一個(gè)用戶名為"Teacher,密碼為‘T99999'的用戶;創(chuàng)建一個(gè)用戶名為'Student'密碼為"Slllir的用戶。Detailsroraccountnewusepw。LoginAccountLimitsAdminstrativeRolesSchemaPrivilegesLoginName:TeacherYoumayaeatemultipleaccountswiththesamenametoconnectfromdifferenthosts.AuthenticationType:Standard v*Forthestandardpasswordand/orhostbasedauthentication,select'Standard.LimittoHostsMatdiing:|%%and_wildcardsmaybeusedPassword:Weakpassword.Typeapasswordtoresetit.ConfirmPassword:"?**工Enterpasswordagaintoconfirm.ExpirePasswordDetailsforaccountTeacher^)%LoginAccouitLimitsAdministrativeRolesSchemaPriviegesLoginName:〔Student Youmaycreatemultipleaccountswiththesamenametoconnectfromdifferenthosts.AuthenticationType: StandardForthestandardpasswordand/orhostbasedauthenticat)on,selectStandard.LimittoHostsMatching:%%and_wildcardsmaybeusedPassword:產(chǎn)…* Weakpassword.ConfirmPassword:Typeapasswordtoresetit.Enterpasswordagaintoconfirm.ExprePasswordUserFromHostStudent%Teacher%UserFromHostStudent%Teacher%mysql.sessionlocalhostmysql.syslocalhostrootlocalhostSchemashoppingPriviegesSELECT<LoginAccountLimitsAdmnstrativeRolesSchemaPrivilegesUserStudentFromHost%Teacher %mysql.sessionlocalhostmysql.syslocalhostrootlocalhostUserAcccwntsUserFromHostStudent%Teacher%mysql.sessionlocalhostmysql.syslocalhostrootlocalhost【實(shí)驗(yàn)6-2]用戶授權(quán):將Shopping數(shù)據(jù)庫上SELECT.INSERT.DELETE.UPDATE的權(quán)限授予'Teacher'用戶:將Shopping數(shù)據(jù)庫上SELECT的權(quán)限授予'Student'用戶。SchemaandHostfieldsmayuse%and_wildcards.Theserverwimatchspecificentriesbeforewidcardedones.DetailsforacccxintTeacher^%LoginAccountLmtsAdmostraOveRolesSchemaPrivilegesSchema PrivlegesShoppy DELETE,INSERT,SELECT,UPDATESchemaandHostfieldsmayuse%and_wildcards.Theserverwilmatchspecificentriesbeforewidcardedones.ObjectRights□SaECTObjectRights□SaECT□INSKT□CREATE□ALIW【實(shí)驗(yàn)6-3】以'Teacher'用戶身份連接Shopping數(shù)據(jù)庫,分別執(zhí)行SELECT、INSERT、DELETE.UPDATE.CREATE操作,查看執(zhí)行結(jié)果;以'Student'用戶身份連接Shopping數(shù)據(jù)庫,執(zhí)行SELECT、INSERT、DELETE.UPDATE操作,查看執(zhí)行結(jié)果。TeacherSuccessfullymadetheMySQLconnectionInformationrelatedtothisconnection:Port:3306User:TeacherSSLnotenabledAsuccessfulMySQLconnectionwasmadewiththeparametersdefinedforthisconnection.DonWmt,1%1?■皿回1?select*fromautoparts;—ItGrid)Oara*Row,:I 11Ed?:星|矗品Expori/lmpoft:1Q|俗|WrapCellContent:交ApriApname imageJink1magejink2imageJnk3Introductionis.saleoldjxicePriceWeightisgei風(fēng)胎刷熱刷刷刷刷胎的墊鳳胎刷他
擋輪雨腳雨雨雨雨輪掄腳擋掄雨蜘1-1xxxxXXXXXXXXXXXXXXXXXXXXXXXX風(fēng)胎刷熱刷刷刷刷胎的墊鳳胎刷他
擋輪雨腳雨雨雨雨輪掄腳擋掄雨蜘1-1xxxxXXXXXXXXXXXXXXXXXXXXXXXXXXX2222xxxxXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXx*xxxxxxxxxxx*YXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2222xxxxxxxxxxxXY*同胎刷墊刷刷刷刷胎般
擋輪雨腳雨雨雨雨輪輪風(fēng)胎刷他
擋掄雨Bln2.33500.9810.98230.0010.9810.9810.9810.98310.98310.9810.002.33500.9810.981.33500.989.99230.00329.99329.994.991.33500.989.99?in.no查看備份文件▼W【實(shí)驗(yàn)6-4]使用mysqldump匚具對查看備份文件▼WH。Ia獷只。I蜜I一?圍IDonlUmitinsertintoclientkindvalues(,'教陽');Output:?:?工?:?3?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?3?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?:?"?:?:?:?:?:?:?:?:?3?:?::□PActionOutput ▼#TimeAction5 114:48:04insertintodientkmdvalues(6.教師)wV#IIWFI"I1?deletefromclientkindwherekid=|;Output:?:■::?:■:?:?:?:?:?:?:■:?:[JActionOutputTimeAction114:48:04insertintoclientkindvalues(6.教師)214:48:50deletefromdientkindwherename=教師.314:50:17deletefromdientkindwherekid=5MMIFIXXVIBJI- sniumn ▼IRI▼JLUJ1updateclientkindsetname='教井T'wherekid=t;|Output:[JActionOutput#TimeActionMe*e114:48:04insertintoclientkindvalues(6.教師)1ro,O214:48:50deJetefromclientkindwherename"教師*EnoQ314:50:17deletefromclientkindwherekid=51fO)e414:50:57updatedentkindsetname=教師Twherekid=61ro,【實(shí)驗(yàn)6-5】對Shopping數(shù)據(jù)庫啟用二進(jìn)制日志,并且查看日志。SuccessfullymadetheMySQLconnectionInformationrelatedtothisconnection:Port:3306User:StudentSSLnotenabledAsuccessfulMySQLconnectionwasmadewiththeparametersdefinedforthisconnection.【實(shí)驗(yàn)6-6]使用mysqldump工具對Shopping數(shù)據(jù)庫進(jìn)行恢復(fù),查看恢復(fù)前后Shopping數(shù)據(jù)庫的數(shù)據(jù)狀態(tài)。Query1x?01伊仔艮Ol酊I??甯IDontLimit1?select*fromclient;5100101xxxxXXXxxxxxxxxXXXXxxxxx張李5100101xxxxXXXxxxxxxxxXXXXxxxxx張李豐---子龍人五木子樹CYS1王李趙周IUC皿123456zs@126,com2019-01-0100:00:0012322213344765432018-02-0100:00:002WW234523452017-09-0800:00:003233333333332019-11-1100:00:0011122222222019-02-0300:00:002222222222222019-02-0300:00:0013211112019-11-3021:31:442nnn函sI;E?I;LU?ResultGrid超0FilterRows: ||Ed>:掰)愚>§nExport/Import:電:fQ]WrapddImageCnamePasswordphone_numberEmailCreatetimeCkind【實(shí)驗(yàn)6-7]分別使用SELECT...INTO>MySQL命令、MySQLWorkbench完成Shopping數(shù)據(jù)庫中會員表和汽車配件表的導(dǎo)出,查看導(dǎo)出結(jié)果。TYVinIVV191I3nt5*insertintoclientkindv?lues(/學(xué)生,);OutputJActionOutputTima
i145n3Actionsded-fromckrt7fow4i|fetiMnedO21453:34&TorCode1142INSERTocmnanddenedtou>er*Sbudert'@locAo*'forUblecienttand'WVZiI Ideletefro?clientkindwherecid?;Output(5AdenOutput ?.TbneAcwiQ114:52:33sdect'fromderto2145334mertm-rtk必*M<5.亨生)O31454.11de4e<efromdentkndwherecxl-67row8)ncUfnedEmxCodt11422S£RT8HEnorCode1142DELETEcomanddenedtou?r,SluierteV>cdhoiffort4UecAerdund'實(shí)驗(yàn)6-8】分別使用LOADDATA、MySQUMPORT、MySQLWorkbench完成Shopping數(shù)據(jù)庫中會員表和汽車配件表的導(dǎo)入,查看導(dǎo)入結(jié)果。?0“raoiwiooh? ??力i-anj31updateclientkiftdset??學(xué)生「kid";Output(5AcbonCktpU ?.TimeActiono1145233?4ec?-fromcier<O2145334medrtoc*ertknlv?be^5,T±')O 31454
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 可穿戴醫(yī)療設(shè)備在皮膚癌監(jiān)測中的市場增長策略研究報(bào)告
- 2025屆內(nèi)蒙古呼倫貝爾市海拉爾區(qū)鐵路第三中學(xué)英語八下期中達(dá)標(biāo)測試試題含答案
- 2025年家具行業(yè)個(gè)性化定制生產(chǎn)綠色生產(chǎn)市場前景報(bào)告
- 2025年元宇宙時(shí)代基礎(chǔ)設(shè)施建設(shè):區(qū)塊鏈技術(shù)深度應(yīng)用案例分析報(bào)告
- 2025年元宇宙社交平臺用戶參與度提升策略研究
- 2025年元宇宙社交平臺虛擬現(xiàn)實(shí)與虛擬現(xiàn)實(shí)房地產(chǎn)游戲化應(yīng)用創(chuàng)新研究報(bào)告
- 2025年元宇宙社交平臺虛擬現(xiàn)實(shí)社交平臺技術(shù)融合與創(chuàng)新趨勢報(bào)告
- 2025年醫(yī)院電子病歷系統(tǒng)優(yōu)化提升醫(yī)療數(shù)據(jù)質(zhì)量深度報(bào)告
- 金融機(jī)構(gòu)數(shù)字化轉(zhuǎn)型下風(fēng)險(xiǎn)管理的智能化與自動(dòng)化報(bào)告001
- 2025屆內(nèi)蒙古烏蘭察布市化德縣英語八下期末考試模擬試題含答案
- 移動(dòng)機(jī)器人定位導(dǎo)航性能評估規(guī)范
- 臨床男科學(xué)與男科疾病診療
- 美的集團(tuán)職位分析與職位說明書研討會
- 《礦用防爆車輛電動(dòng)自動(dòng)轉(zhuǎn)向系統(tǒng)技術(shù)要求》
- 代收房租協(xié)議書范文
- 民法典合同編解讀之保證合同
- 《中藥學(xué)》課件-中藥思政元素案例
- 廣東省深圳市寶安區(qū)2022-2023學(xué)年二年級下學(xué)期期末數(shù)學(xué)試卷
- 譯林版英語八年級下冊語法知識總結(jié)
- 范卿平人教版初三化學(xué)講義全集
- 幼兒園規(guī)范化幼兒園參評自評報(bào)告
評論
0/150
提交評論