MySQL ã«ã¯ããã¼ãã«ã®å®ç¾©ããã¼ã¿ã追å ããããã® SQL æãåºåããããã® mysqldump ãç¨æããã¦ãã¾ãã ãã¹ã¦ã®ãã¼ã¿ãã¼ã¹ãããã¯ã¢ããããã«ã¯ã次ã®ããã«æå®ãã¾ãã $ mysqldump -A -u root -p ãã¹ã¯ã¼ã --opt > ãã³ããã¡ã¤ã«å æå®ãã¦ãããªãã·ã§ã³ã®æå³ã¯ã次ã®ããã«ãªãã¾ãã -aï¼å ¨ã¦ã®ãã¼ã¿ãã¼ã¹ã対象ã«ãã¾ãã -optï¼ã¯ã¨ãªããããã¡ãããstdou ã«ç´æ¥ãã³ãããã drop table ã追å ããã åãã¼ãã«ãã³ãã®åã« LOCK TABLES ã追å ããå¾ã« UNLOCK TABLE ã追å ããã è¤æ°è¡ INSERT æ§æã使ç¨ããã ãã³ããéå§ããåã«ãã¹ã¦ã®ãã¼ãã«ãããã¯ããã ç¹å®ã®ãã¼ã¿ãã¼ã¹ãããã¯ã¢ããããå ´åã次ã®ããã«æå®ãã¾ãã $ mysqldump ãã¼ã¿ãã¼ã¹å -u r
{{#tags}}- {{label}}
{{/tags}}