Sida Loo Kaydiyo Xogta MySQL
MySQL waa Nidaamka Maareynta Xogta Xidhiidhka ah(Relational Database Management System) ( RDBMS ). Waxay gacanta ku haysaa tilmaamaha xogta xogta waxayna maareyn kartaa kaydyo badan isku mar.
Tusaale ahaan, haddii aad rabto inaad abuurto kayd cusub(create a new database) ama aad ku darto xogta kaydka jira, waxaad fariin u dirtaa server-ka MySQL , sii xogta aad rabto inaad ku darto, oo u sheeg meesha aad ku darto.
Haddii ganacsigaagu yar yahay ama ha weynaado, xogtaadu waa shay lagama maarmaan ah. Si loo hubiyo in macluumaadkaaga qiimaha leh uu ka badbaado burburka, xatooyada, ama saamaynta musiibada, kaydi xogta MySQL(backup your MySQL) . Maqaalkani wuxuu sharxi doonaa dhowr siyaabood oo taas loo sameeyo.
Kayd MySQL Database Isticmaalka phpMyAdmin(Backup MySQL Database Using phpMyAdmin)
Samee(Create) faylka dhoofinta ama kaydinta xogta MySQL adiga oo gelaya phpMyAdmin aaladda kontoroolka martigelinta ee shabakadaada sida cPanel. Waxaan u isticmaali doonaa cPanel ujeeddooyinka maqaalkan.
- Ku bilow inaad gasho cPanel kaaga oo guji phpMyAdmin.
- Dooro xogta MySQL ee aad rabto inaad ka soo celiso guddida navigation ee dhinaca bidix. Kadib guji xiriirka dhoofinta ee ku yaal bar navigation sare.
- Laga soo bilaabo bogga Dhoofinta(Export) , waxaad arki doontaa laba ikhtiyaar: Custom iyo Quick . Dooro ikhtiyaarka gaarka(Custom) ah.
- Ka dib markaad doorato Custom , waxaad arki doontaa liiska macluumaadkaaga macluumaadka. Waxaad dooran kartaa mid, qaar, ama dhammaan. Dejinta caadiga ah waa in dhammaan kaydinta.
- Hoosta ikhtiyaarka wax soo saarka, dooro gzipped si aad u cadaadiso(Compression) . U daa ikhtiyaarada kale inay yihiin kuwa khaladka galay.
- Guji badhanka Go si aad u bilowdo kaydka oo aad u soo dejiso faylkaaga. Magaca faylkaagu wuxuu noqon doonaa faylkaagaDatabaseName.sql.gz(YourDatabaseName.sql.gz file) .
Wakhtiga ay qaadanayso in kaydinta la dhamaystiro waxay ku xidhan tahay xajmiga xogtaada.
Kaydka MySQL Database Iyadoo leh mysqldump(Backup MySQL Database With mysqldump)
Isticmaal amarka mysqldump si aad u abuurto daadinta faylka qoraalka ee xogtaada oo ay maamuli doonto MySQL . Tuubitaanka faylka qoraalka waa faylal qoraal ah oo ay ku jiraan amarrada SQL ee aad u baahan tahay si aad xogtaada uga abuurto xoq.(SQL)
- Si aad u kaydiso hal xog-ururin, adeegso amarka soo socda:
mysqldump database_name > database_name.sql
Amarkan ayaa abuuri doona kaydka oo u diri doona faylka .sql. Waxa kaliya oo ay samayn doontaa koobiga xogtaada mana saameyn doonto.
- Adeegso amarkan soo socda si aad u kaydiso xog ururin badan isku mar.
mysqldump –databases database_one database_two > two_databases.sql
Database_one waxa loola jeedaa magaca kaydka kowaad iyo database_two waa magaca kaydka labaad ee aad rabto inaad kaydiso. Labaduba waxa lagu kaydin doonaa hal kayd.
- Haddii aad rabto inaad kaydiso dhammaan macluumaadkaaga MySQL ee server-ka, adeegso amarkan soo socda si aad u abuurto hal fayl oo gurmad ah oo .sql ah kaas oo ka koobnaan doona dhammaan xogtaada.
mysqldump –all-databases > all_databases.sql
Kaydka MySQL Database Isticmaalka Cron Jobs(Backup MySQL Database Using Cron Jobs)
Shaqada cron waa amar Linux ah oo loo isticmaalo in lagu fuliyo hawl waqti cayiman si toos ah. Waxaan sharxi doonaa sida loo isticmaalo amarkan si otomaatig loogu sameeyo kaydka xogta MySQL .
- Ku bilow inaad gasho cPanel kaaga oo aad hoos ugu dhaadhacdo qaybta Sare(Advanced) oo guji Shaqooyinka Cron(Cron jobs) .
- Waxaad arki doontaa digniin ah inaad leedahay aqoon wanaagsan oo amarrada Linux ah si aad u isticmaasho shaqooyinka cron si wax ku ool ah. Haddii aadan, ka hubi maamulahaaga martigelinta.
- Haddii aad rabto inaad hesho iimayl mar kasta oo shaqo cron ah ay maamusho amar soo saara wax soo saar, geli ciwaanka emailkaaga sanduuqa oo guji Cusbooneysii Email(Update Email) .
- Ka dooro mid ka mid ah Goobaha Guud(Common Settings) ee liiska hoos u dhaca si aad u dooratid inta jeer ee aad rabto inaad socodsiiso kaydinta.
- Waxaad sidoo kale hagaajin kartaa goobaha kale sida wakhtiga iyo maalinta toddobaadka.
- Hadda waa waqtigii lagu dhejin lahaa amarka sida soo socota:
/usr/bin/mysqldump -u dbusername -p’dbpassword’ dbname > /home/username/path/backup.sql
- Ku beddel dbusername , dbpassword , iyo dbname magaca isticmaalaha xogtaada, erayga sirta ah, iyo magaca kaydka macluumaadka.
- Jidku(Path) waxa ay tilmaamaysaa gal ama taxane faylal ah oo aad rabto in faylkaaga kaydinta ahi aado. Magaca faylkaaga kaydinta waxa uu u taagan yahay amarka sida backup.sql . Waad bedeli kartaa magacaas ama aad uga tagi kartaa sidiisa. Guji (Click) Kudar Shaqo Cusub Cron(Add New Cron Job) .
- Haddii aad hoos u yara dhaadhacdo, waxaad arki doontaa liiska Shaqooyinka Cron-kaaga Hadda.(Current Cron Jobs.)
- Haddii aad rabto inaad bedesho mid ka mid ah shaqooyinka cron-kaaga hadda, dhagsii Edit . Haddii aadan rabin inaad wax shaqo ah qabato ama aad qalad sameyso, guji Delete .
Isticmaal WordPress (WP) Plugins si aad u kabsato MySQL(Use WordPress (WP) Plugins to Backup MySQL)
Haddii aad isticmaalayso WP, waxaad isticmaali kartaa plugin si aad u kaydiso xogtaada(use a plugin to back up your database) . UpdraftPlus waxay ku kaydin doontaa faylkaaga xogta hal mar. Hadda waxa ay haysaa in ka badan laba milyan oo rakibo oo firfircoon.
BackWPup
Isticmaal BackWPup(Use BackWPup) si aad u kaydiso faylashaada xogta MySQL iyo xitaa rakibaada WP oo dhamaystiran.
Waxaa jira plugins badan oo WP(WP plugins) ah oo diyaar u ah in lagu taageero MySQL(MySQL) . Dooro mid la shaqeeya nooca hadda ee WP oo si firfircoon loo cusboonaysiiyay.
Si looga fogaado luminta xogta muhiimka ah, si joogto ah u kaydi xogta MySQL . Haddii aad haysato kayd, waxaad awoodi doontaa inaad soo celiso xogta muhiimka ah ama aan la bedeli karin haddii ay wax dhacaan si ay u kharribaan goobtaada.
Related posts
Dib-u-eegis Buugaag - Hagaha sida-Geek-ga loo barto ee Windows 8
Ku rakibida GIMP Plugins: Habka-Hagaha
Sida loo soo dejiyo Google Chrome Offline (Standalone) Rakibaye
Demi Koontaroolada Koontada Isticmaalaha (UAC) ee Codsi Gaar ah
8 ka mid ah Fikradaha Farsamada ugu Fiican ee lagula tacaali karo Go'doominta
6 Dejinta kamarada ugu Fiican ee Sawirada Dayaxa
Sida Loo Abuuro Koox Ka Mid Ah Kooxaha Microsoft
Sida loo sahlo Xaqiijinta Ilaalada Steam
Sida loo beddelo midabka asalka ah ee Google Docs
Sida Loo Dhiso Laabtoobkaaga
Sida SSH ama SFTP loogu geliyo Raspberry Pi kaaga
Sida loo furo Faylka JAR ee Daaqadaha
Sida loo damiyo Furaha Daaqadaha
Sida Loo Soo Celiyo Akoonka Facebook-ga La Jabsado
Uninstall iyo reinstall IE gudaha Windows 7
Sida Loo Ogaado Hadii Kombayutarkaga Lala Soconayo
Sida loo beddelo faylasha IMG loona beddelo ISO
Sida loo digitize DVD-yada
Sida Bogag Badan Loogu Sawiro Hal Fayl oo PDF ah
Sida Loo Ilaaliyo PC-gaaga Daaqadaha Adigoon taaban Jiirka