1) |
codns ÀÚ·á½Ç ¶Ç´Â ´ÙÀ½ »çÀÌÆ®¿¡¼ http://dev.mysql.com/downloads´Ù¿î
¹Þ½À´Ï´Ù. |
2) |
·¹µåÇÞ ¸®´ª½º ±â¹ÝÀÇ ½Ã½ºÅÛ¿¡¼´Â MysqlÀÇ RPM ÆÐÅ°Áö°¡ ¼³Ä¡µÇ¾îÀÖ´ÂÁö
¸ÕÀú È®ÀÎÇÕ´Ï´Ù.
rpm -qa | grep mysql ¶Ç´Â MySQL |
3) |
±âÁ¸¿¡ ¼³Ä¡µÇ¾îÀÖ´Â mysql RPM ÆÐÅ°Áö¸¦ Á¦°ÅÇÕ´Ï´Ù.
rpm -e [mysql ÆÐÅ°Áö¸í] |
4) |
Mysql °èÁ¤ÀÌ ¾øÀ» °æ¿ì »ç¿ëÀÚ ¹× ±×·ì °èÁ¤À» Ãß°¡ÇÕ´Ï´Ù.
groupadd mysql
useradd -g mysql mysql |
5) |
¾ÐÃàÀ» DZ´Ï´Ù.
mv ./mysql-4.0.21.tar.gz /usr/local/src
cd /usr/local/src
tar xvfz mysql-4.0.21.tar.gz |
6) |
ÇØ´ç µð·ºÅ丮·Î À̵¿ ÄÄÆÄÀÏ°ú ÀνºÅç ÇÕ´Ï´Ù.
cd mysql-4.0.21
./configure--prefix=/usr/local/share/mysql--localstatedir=/usr/local/share/mysql/data--with-charset=euc_kr
make
make install |
7) |
MysqlÀÌ ¼³Ä¡µÈ µð·ºÅ丮·Î À̵¿ grant tableÀ» ¸¸µé¾îÁÝ´Ï´Ù.
cd /usr/local/share/mysql
bin/mysql_install_db |
8) |
Mysql µð·ºÅ丮ÀÇ ±ÇÇÑÀ» ¼³Á¤ÇÕ´Ï´Ù.
chown -R root /usr/local/share/mysql
chgrp -R mysql /usr/local/share/mysql
chown -R mysql /usr/local/share/mysql/data |
9) |
¼³Á¤ÆÄÀÏ my-medium.cnf ¸¦ my.cnf¶ó´Â À̸§À¸·Î /etc µð·ºÅ丮¿¡
º¹»çÇÕ´Ï´Ù.
cp share/mysql/my-medium.cnf /etc/my.cnf |
10) |
) /etc/my.cnf ÆÄÀÏÀ» ¿¡µðÅÍ·Î ¿¾î basedir°ú datadirÀÇ
°æ·Î¸¦ Ãß°¡ÇÕ´Ï´Ù.
vi /etc/my.cnf
[mysqld]
basedir=/usr/local/share/mysql
datadir=/usr/local/share/mysql/data |
11) |
/etc/profile ÆÄÀÏÀ» ¿¡µðÅÍ·Î ¿¾î PATH¿¡ /usr/local/share/mysql/binÀ»
Ãß°¡ÇÕ´Ï´Ù. |
12) |
support-files/mysql.server ÆÄÀÏÀ» /etc/rc.d/init.d
µð·ºÅ丮¿¡ mysqld·Î À̸§À» º¯°æÇÏ¿© º¹»çÇÕ´Ï´Ù.
cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld
|
13) |
½Ã½ºÅÛ ºÎÆýà ÀÚµ¿ÀûÀ¸·Î MysqlÀ» ½ÇÇàÇÏ°íÀÚ ÇÒ °æ¿ì¿¡´Â /etc/rc.d/init.d/httpdÀÇ
symbolic link ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.(Àý´ë°æ·Î)
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc0.d/K01mysql
ln -s /etc/rc.d/init.d/mysqld /etc/rc.d/rc3.d/S90mysql
|