°Ô½Ã¹° 1,369°Ç
   
MYSQL µ¥ÀÌŸ Æú´õº¯°æ (datadir)
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-04-07 (¼ö) 15:58 Á¶È¸ : 22585
±ÛÁÖ¼Ò :
                                

DRBD MYSQL Å×½ºÆ®¸¦ À§ÇØ µ¿±âÈ­¸¦ ½Ãų ÀåÄ¡ÀΠMYSQL µ¥ÀÌŸ Æú´õ¸¦ º¯°æÇÏ·Á°í ÇÑ´Ù.
±âÁ¸Àº ¼Ò½ºÄÄÆÄÀÏ·Î µÇ¾îÀÖ´Ù.

my.cnf ÆÄÀÏ¿¡ ¿É¼Ç¸¸ Ãß°¡Çϰųª ±âÁ¸¿¡ ÀÖ´Ù¸é ¼öÁ¤ÇÏ¸é µÈ´Ù.

[client]
#password       = your_password
port            = 3306
socket          = /tmp/mysql.sock
# Here follows entries for some specific programs

# The MySQL server
[mysqld]
datadir=/home1/data
port            = 3306
socket          = /tmp/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
thread_concurrency = 8


¿øº» µ¥ÀÌŸ Æú´õ¸¦ º¹»çÇؿ´Ù.

[root@node2 data]# cp -a /usr/local/mysql/data/*  ./


±×¸®°í µ¥¸ó½ÃÀÛ /etc/init.d/mysqld ½ºÅ©¸³Æ®·Î ½ÇÇàÇҰŶó¸é ÇØ´ç ½ºÅ©¸³Æ® ÆÄÀϵµ ¼öÁ¤

[root@node2 data]# /usr/local/mysql/bin/mysqld_safe &
[1] 12347
[root@node2 data]# Starting mysqld daemon with databases from /home1/data

¡Ø ÀÌÁ¦ º¯°æµÈ À§Ä¡¿¡¼­ µ¥ÀÌŸ°¡ ÀúÀå/¼öÁ¤/»èÁ¦°¡ ÀÌ·ç¾îÁø´Ù.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.