ÇØÄ¿Áî´º½º / ÇØÄ¿´ëÇÐ

Donation bitcoin(±âºÎ¿ë ºñÆ®ÄÚÀÎ ÁÖ¼Ò)

¡¡
1Pq3K39XM5xx4CifGKgppXeavtWNNHH7K4
¡¡
±âºÎÇϽŠºñÆ®ÄÚÀÎÀº "º¸¾È Ãë¾à °èÃþ"À» À§ÇØ »ç¿ëµÇ°í ÀÖ½À´Ï´Ù.
¡¡
¡¡

Donation bitcoin(±âºÎ¿ë ºñÆ®ÄÚÀÎ ÁÖ¼Ò)

¡¡
1Pq3K39XM5xx4CifGKgppXeavtWNNHH7K4
¡¡
±âºÎÇϽŠºñÆ®ÄÚÀÎÀº "º¸¾È Ãë¾à °èÃþ"À» À§ÇØ »ç¿ëµÇ°í ÀÖ½À´Ï´Ù.
¡¡

°øÁö

¡¡

1. MS ¿§Áö ºê¶ó¿ìÀú¿¡¼­ÀÇ °æ°íâÀº 'À©µµ¿ì µðÆæ´õ'¸¦ ²ô½Ã¸é µË´Ï´Ù.

             'À©µµ¿ì µðÆæ´õ ²ô±â'

2. Å©·Ò ºê¶ó¿ìÀú·Î Á¢¼Ó½Ã ³ª¿À´Â ¾Ç¼ºÄÚµå °æ°íâÀº ±¸±Û Å©·ÒÀÇ ¿¡·¯, Áï ¿ÀŽ(ŽÁö ¿À·ù)À̹ǷΠ¹«½ÃÇÏ½Ã¸é µË´Ï´Ù.

3. ÀÌ »çÀÌÆ®´Â ¾ÈÀüÇÏ¸ç ±ú²ýÇÏ´Ù´Â °ÍÀ» ¾Ë·Á µå¸³´Ï´Ù.

4. ¹«°íÇÑ »çÀÌÆ®µé¿¡ ´ëÇÑ °ø·æ ±â¾÷ ºê¶ó¿ìÀúµéÀÇ ¹«Â÷º°ÀûÀÎ 'ŽÁö ¿À·ù ȾÆ÷'°¡ »ç¿ëÀÚµéÀÇ Á¤º¸ °øÀ¯ÀÇ ÀÚÀ¯¸¦ ħÇØÇÏ°í ÀÖ½À´Ï´Ù. ÀÌ¿¡ ´ëÀÀÇÏ¿© ÀÌ ±â¾÷µéÀ» »ó´ë·Î ¼Ò¼ÛÀ» ÁغñÇÏ°í ÀÖ½À´Ï´Ù.

¡¡




¼³Ä¡
ÆÁ
ÇÁ·Î±×·¡¹Ö

MYSQL ÆÁ
À̸§: ÇØÄ¿Áî´º½º
mysql ¹é¾÷ ¹Þ±â - mysqldump  
ÀϹÝÀûÀ» mysql µ¥ÀÌŸ ¹é¾÷Àº dump ¸í·É¾î¸¦ »ç¿ëÇؼ­ ¹é¾÷À» ¹Þ´Â´Ù.
dump ¹Þ¾Æ³õÀº µ¥ÀÌŸ´Â ¾ðÁ¦µç±â ¿ø»óº¹±Í°¡ °¡´ÉÇÏ´Ù.  


[ »ç¿ë Çü½Ä ]

  [root@soma]#mysqldump [OPTIONS] databases [tables]

  [root@soma]#mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3..]

  [root@soma]#mysqldump [OPTIONS] --all-databases [OPTIONS]


[ ¿É ¼Ç ]

  -A, --all-databases   Dump all the databases. This will be same as
                       --databases with all databases selected.
  -a, --all             Include all MySQL specific create options.
  -#, --debug=...       Output debug log. Often this is 'd:t:o,filename`.
  --character-sets-dir=...
                       Directory where character sets are
  -?, --help            Display this help message and exit.
  -B, --databases       To dump several databases. Note the difference in
                       usage; In this case no tables are given. All name
                       arguments are regarded as databasenames.
                       'USE db_name;' will be included in the output
  -c, --complete-insert Use complete insert statements.
  -C, --compress        Use compression in server/client protocol.
  --default-character-set=...
                        Set the default character set
  -e, --extended-insert Allows utilization of the new, much faster
                       INSERT syntax.
  --add-drop-table      Add a 'drop table' before each create.
  --add-locks           Add locks around insert statements.
  --allow-keywords      Allow creation of column names that are keywords.
  --delayed-insert      Insert rows with INSERT DELAYED.
  -F, --flush-logs      Flush logs file in server before starting dump.
  -f, --force           Continue even if we get an sql-error.
  -h, --host=...        Connect to host.
  -l, --lock-tables     Lock all tables for read.
  -n, --no-create-db    'CREATE DATABASE /*!32312 IF NOT EXISTS*/ db_name;'
                         will not be put in the output. The above line will
                       be added otherwise, if --databases or
                       --all-databases option was given.
  -t, --no-create-info  Don't write table creation info.
  -d, --no-data         No row information.
  -O, --set-variable var=option
                       give a variable a value. --help lists variables
  --opt                 Same as --add-drop-table --add-locks --all
                       --extended-insert --quick --lock-tables
  -p, --password[=...]  Password to use when connecting to server.
                       If password is not given it's solicited on the tty.

  -P, --port=...        Port number to use for connection.
  -q, --quick           Don't buffer query, dump directly to stdout.
  -Q, --quote-names     Quote table and column names with `
  -r, --result-file=... Direct output to a given file. This option should be
                       used in MSDOS, because it prevents new line '\n'
                       from being converted to '\n\r' (newline + carriage
                       return).
  -S, --socket=...      Socket file to use for connection.
  --tables              Overrides option --databases (-B).
  -T, --tab=...         Creates tab separated textfile for each table to
                       given path. (creates .sql and .txt files).
                       NOTE: This only works if mysqldump is run on
                             the same machine as the mysqld daemon.
  -u, --user=#          User for login if not current user.
  -v, --verbose         Print info about the various stages.
  -V, --version         Output version information and exit.
  -w, --where=          dump only selected records; QUOTES mandatory!
  EXAMPLES: "--where=user='jimf'" "-wuserid>1" "-wuserid<1"
  Use -T (--tab=...) with --fields-...
  --fields-terminated-by=...
                       Fields in the textfile are terminated by ...
  --fields-enclosed-by=...
                       Fields in the importfile are enclosed by ...
  --fields-optionally-enclosed-by=...
                       Fields in the i.file are opt. enclosed by ...
  --fields-escaped-by=...
                       Fields in the i.file are escaped by ...
  --lines-terminated-by=...
                       Lines in the i.file are terminated by ...

  Default options are read from the following files in the given order:
  /etc/my.cnf /usr/local/mysql/var/my.cnf ~/.my.cnf  
  The following groups are read: mysqldump client
  The following options may be given as the first argument:
  --print-defaults        Print the program argument list and exit
  --no-defaults           Don't read default options from any options file
  --defaults-file=#       Only read default options from the given file #
  --defaults-extra-file=# Read this file after the global files are read

  Possible variables for option --set-variable (-O) are:
  max_allowed_packet    current value: 25165824
  net_buffer_length     current value: 1047551
                           

[ ¿¹ Á¦ ]

 1. ÇöÀç ½Ã½ºÅÛ³»ÀÇ ¸ðµç µ¥ÀÌŸº£À̽º¸¦ ¹é¾÷ ¹Þ°Ú´Ù.

    [root@soma]# mysqldump -u root -p -A > 1.sql

    [¼³¸í]- ¸ðµç µ¥ÀÌŸº£À̽º¸¦ 1.sql À̶õ ÆÄÀϸíÀ¸·Î ¹é¾÷À» ¹Þ´Â´Ù.
            vi ÆíÁý±â·Î 1.sql ÆÄÀÏÀ» ¿­¾îº¸¸é °¢°¢ÀÇ µ¥ÀÌŸº£À̽º¸¦ create ½ÃÅ°´ÂºÎºÐ
            °¢°¢ÀÇ µ¥ÀÌŸº£À̽º¸¶´Ù Å×À̺íÀ» create ½ÃÅ°´ÂºÎºÐ ±×¸®°í Å×ÀÌºí¿¡ µ¥ÀÌŸ¸¦
            insert ½ÃÅ°´Â ºÎºÐµéÀÌ ¸ðµÎ ³ª¿­µÇ¾îÀÖÀ½À» ¾Ë¼öÀÖ´Ù.


 2. ƯÁ¤ µ¥ÀÌŸº£À̽º¸¸ ¹é¾÷ ¹Þ°Ú´Ù.

    [root@soma]# mysqldump -u root -p --databases soma_db > 2.sql

    [¼³¸í] - soma_db ¶ó´Â µ¥ÀÌŸº£À̽º¸¸ ¹é¾÷À» ¹Þ´Â´Ù.
             vi ÆíÁý±â·Î 2.sql ÆÄÀÏÀ» ¿­¾îº¸¸é soma_db ¶ó´Â µ¥ÀÌŸº£À̽º¸¦ create ½ÃÅ°
             ´Â ºÎºÐ°ú °¢°¢ÀÇ Å×À̺íÀ» create ½ÃÅ°´ÂºÎºÐ ±×¸®°í °¢°¢ÀÇ Å×ÀÌºí¿¡ µ¥ÀÌŸ
             ¸¦ insert ½ÃÅ°´Â ºÎºÐÀÌ ÀÖÀ½À» ¾Ë¼öÀÖ´Ù.



    [root@soma]# mysqldump -u root -p --databases soma_db cat_db > 3.sql

    [¼³¸í] - soma_db,cat_db ¶ó´Â µ¥ÀÌŸº£À̽º¸¸ ¹é¾÷À» ¹Þ°ÔµÈ´Ù.


  3. ƯÁ¤ µ¥ÀÌŸº£À̽ºÀÇ Æ¯Á¤ Å×ÀÌºí¸¸ ¹é¾÷ ¹Þ°Ú´Ù.

    [root@soma]# mysqldump -u root -p soma_db book > 4.sql

    [¼³¸í] - soma_db ¶ó´Â µ¥ÀÌŸº£À̽ºÀÇ book ¶ó´Â Å×ÀÌºí¸¸ ¹é¾÷À» ¹Þ°Ú´Ù.
             vi 4.sql ÆÄÀÏÀ» ¿­¾îº¸¸é Å×À̺íÀ» create ½ÃÅ°´Â ºÎºÐ°ú Å×ÀÌŸµéÀ» Å×ÀÌºí¿¡
             ÀÔ·ÂÇÏ´Â ºÎºÐÀÌÀÖÀ½À» ¾Ë¼öÀÖ´Ù.
 
             Áß¿äÇÑ°ÍÀº µ¥ÀÌŸº£À̽º¸¦ create ½ÃÅ°´Â ºÎºÐÀÌ ¾øÀ½À» ÁÖÀÇÇؾßÇÑ´Ù.
             ÀÌ´Â ¹é¾÷¹ÞÀº È­ÀÏ·Î º¹±¸½Ãų¶§ Áß¿äÇÑ ¿ªÈ°À»ÇÑ´Ù.



¾î¶»°Ô ¹é¾÷À» ¹Þ´À³Ä¿¡µû¶ó¼­ º¹±¸ÇÒ¶§ µ¥ÀÌŸº£À̽º¸¦ create ½ÃÄѳõ°í º¹±¸¸¦ ÇؾßÇÏ´ÂÁö ¾Æ´ÑÁö¸¦ °áÁ¤ÁöÀ»¼öÀÖ´Ù.
±×·¯¹Ç·Î À§ÀÇ ³»¿ëµéÀ» ÁÖÀÇ±í¿¡ Àо°í ¹é¾÷ ¹ÞÀº È­ÀϵéÀ» Çѹø¾¿Àº ¿­¾îº¸´Â°Íµµ ±¦ÂúÀ»°Í °°´Ù.


                    ¼öÁ¤/»èÁ¦     ÀÌÀü±Û ´ÙÀ½±Û    
¹øÈ£Á¦ ¸ñ÷ºÎÁ¶È¸
37   mysql °ü·Ã ¸í·É¾î - show table status    2327
36   mysqladmin ¸í·É¾î Á¤¸®ÇÏ±â    2148
35   TEXT ÆÄÀÏ DB ¿¡ ÀÔ·ÂÇϱâ - LOAD DATA INF...    2046
34   mysql ¹é¾÷ ¹Þ±â - mysqldump    2052
33   mysql ÀÇ Å×À̺í ÃÖ´ë »çÀÌÁî´Â ?    2459
32   mysql °èÁ¤¾øÀÌ mysql ¼³Ä¡ÇßÀ»½Ã ¿Ã¹Ù¸£°Ô...    1656
31   mysql µ¥ÀÌŸ µð·ºÅ丮 ¿Å±â±â    1821
30   MySQLÀÇ ¿ÖÅ° ¼³Á¤(Foreign Keys )    1728
29   Proftpd¿Í MySQL ¿¬°á Çؼ­ ¾²±â    1712
28   Query Cache »ç¿ë ¹æ¹ý    1695
27   MySQL¿¡¼­ ÇÑ±Û Á¤·ÄÇÏ±â    1576
26   ƯÁ¤ Ä®·³¿¡ ·ÎµåÇÏ±â    1385

 
óÀ½ ÀÌÀü ´ÙÀ½       ¸ñ·Ï