|
|
|
|
|
 |
| °èÁÂ: 646201-04-095579 |
| ¿¹±ÝÁÖ: ¢ßÀ¥¼Ö |
|
|
|
 |
|
 |
|
 |
Ȩ>°í°´Áö¿ø¼¾ÅÍ>Ãʺ¸ÀÚ°¡À̵å |
 |
| |
 |
 |
 |
Mysql DB ¹é¾÷Çϱâ
|
|
php ÇÁ·Î±×·¥µîÀ¸·Î Á¢¼Óµµ °¡´ÉÇϽÃÁö¸¸ ÅÚ³ÝÀ¸·Î Á¢¼ÓÇÏ½Ç °æ¿ì
¿¹Á¦) ----------------------- DB¸í : testdb DB »ç¿ëÀÚ¸í : test ¾ÏÈ£ : test -----------------------
/usr/local/mysql/bin/mysql -u test -p testdb Enter password: test
¡Øº»ÀÎÀÇ DB¸í°ú DB ÆÐ½º¿öµå´Â "³ªÀǼºñ½º³»¿ª"¿¡¼ È®ÀÎÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
¼¹öÀÌÀü½Ã¿¡³ª ÇöÀçÀÇ DB ÀڷḦ ¹é¾÷¹ÞÀ¸½Ã±æ ¿øÇϽô °æ¿ì¿¡´Â mysqldump ¸í·ÉÀ» ¾Æ·¡¿Í °°ÀÌ ½ÇÇàÇÏ½Ã¾î ¹é¾÷¹ÞÀ¸½Ç ¼ö ÀÖ½À´Ï´Ù.(¹é¾÷ÆÄÀϸíÀÌ testdb.sqlÀϰæ¿ì)
/usr/local/mysql/bin/mysqldump -u test -p testdb > testdb.sql
ÀÌ¿Í °°ÀÌ ¹é¾÷¹ÞÀ¸½Å ÆÄÀÏÀ» DB·Î ´Ù½Ã º¹±¸ÇϽðíÀÚ ÇϽǰæ¿ì¿¡´Â mysqlÁ¢¼Ó½Ã ÆÄÀϸíÀ» ¾Æ·¡¿Í °°ÀÌ Àû¾îÁÖ½Ã¸é °¡´ÉÇÕ´Ï´Ù.
/usr/local/mysql/bin/mysql -u test-p testdb < testdb.sql
|
 |
|
| |
 |
|
|
 |
 |
|
|