mysql ¼³Ä¡ °¡À̵å |
|
# DB 2005-11-20 22:04
|
|
|
ÀÌ»ó¿ë
|
|
|
|
|
mysql-3.23.54a ÃֽŠ¹öÀü ¹× mysql 4.0.9 ¹öÀü ¼³Ä¡ ÀÔ´Ï´Ù.
¡Ú ¼Ò½º ¼³Ä¡ ÀÔ´Ï´Ù. RPMÀ̳ª ¹ÙÀ̳ʸ® ¼³Ä¡´Â ±ÇÀå ÇÏÁö ¾Ê½À´Ï´Ù..^^
MySQL ¼¹ö¸¦ /mysql_server µð·ºÅ丮¿¡ ¼³Ä¡ ÇÏ´Â °úÁ¤ ÀÔ´Ï´Ù.
data µð·ºÅ丮´Â /mysql_server/var ¾Æ·¡ ÀÔ´Ï´Ù.
´Ù¿î·Îµå
http://www.mysql.com ¿¡¼ download¿¡¼ ¼Ò½º(Source) ´Ù¿î·Îµå
ÆÄÀϸí: mysql-3.23.54a.tar.gz
mysql ±×·ì°ú »ç¿ëÀÚ ¸¸µé±â ( for º¸¾È )
shell> groupadd mysql
shell> useradd -g mysql mysql
¾ÐÃà Ç®±â
shell> tar zxvf mysql-3.23.54a
shell> cd mysql-3.23.54a
mysql 3.x.xx ¹öÀü¿¡¼ À̳ëµðºñ¸¦ »ç¿ëÇؼ Æ®·£Àè¼ÇÀ» ¾²·Á¸é configure½Ã¿¡ --with-innodb ¼³Á¤À» Çϼ¼¿ä !
mysql 4 ´Â ¾ÈÇصµ µÊ´Ù.. ±âº» ¼³Ä¡ µÊ´Ù.. innodb
shell> ./configure --prefix=/mysql_server
makeÇÏ°í 10ºÐ Á¤µµ ´ã¹è ÇǼ¼¿ä ^^
shell> make
make install Àº ºü¸§´Ù.
shell> make install
make³ª make install ÇÏ°í ÀÖ´Â µ¿¾È ±âº»ÀûÀÎ ¿¡·¯ (ErrorÀ̳ª Leaving directory ,Nothing) ´Â ¹«½ÃÇϼ¼¿ä^^
¹«½ÃÇÏ°í ³Ñ¾î°¡ ¼¼¿ë ! make´Â 5ºÐ¿¡¼ 10ºÐ Á¤µµ, make install Àº 10ÃÊ Á¤µµ °É¸®¸é µË´Ï´Ù.
±×·¡µµ ¿À·ù°¡ ³ª¸é gcc ¸¦ ¾÷±Û Çϼ¼¿ä. gcc.gnu.org ¿¡¼ 3.2.1 ¹öÀü ´Ù¿î ¹Þ¾Æ ¼³Ä¡ Çϼ¼¿ä !
mysql¿Í test µ¥ÀÌÅͺ£À̽º »ý¼º Çϱâ
shell> scripts/mysql_install_db
¼ÒÀ¯±Ç ºÎ¿© Çϱâ
shell> chown -R root /mysql_server
shell> chown -R mysql /mysql_server/var
shell> chgrp -R mysql /mysql_server
my.cnf ÆÄÀÏ »ý¼º Çϱâ
shell> cp support-files/my-medium.cnf /etc/my.cnf
mysql-3.23.xx ¹öÀü °æ¿ì´Â safe_mysqld
shell> /mysql_server/bin/safe_mysqld --user=mysql &
MySQL 4.x °æ¿ì´Â mysqld_safe
shell> /mysql_server/bin/mysqld_safe --user=mysql &
À§ ó·³ ¼³Ä¡ ÇÒ °æ¿ì mysql.sock ÆÄÀÏÀº /tmp/mysql.sock ¿¡ »ý±é´Ï´Ù.
¼ÒÀ¯±ÇÀº mysql ·Î µÇ¾î ÀÖÁÒ..
¡Ú root ºñ¹ø ¼³Á¤ Çϱâ => root ºñ¹øÀ» xxx ·Î ¼³Á¤ !
mysql> update user set password=password('xxx') where user='root';
Å« µû¿ÈÇ¥(")°¡ ¾Æ´Ï¶ó, ÀÛÀº µû¿ÈÇ¥(') 2°³ ÀÔ´Ï´Ù.
mysql> delete from user where user='';
mysql> flush privileges;
root·Î mysql ¼¹ö¿¡ Á¢¼Ó Çϱâ
shell> mysql -uroot -p
¡Ú mysql ¼¹ö Áö¿ì±â
mysqladmin shutdown
make uninstall
make clean
rm -rf /mysql_server
¡Ú mysql.sock ÆÄÀÏ ¿¡·¯ ÇØ°á
http://www.tood.net/tood/toodboard/toodread.php?board=tootech&tcode=1667
=============================
mysql configure ÇÒ¼ö ÀÖ´Â °Íµé ÀÓ´Ù.. --help Çغ¸¼¼¿ä.
./configure --prefix=/usr/local/mysql --enable-assembler \
--localstatedir=/val/mysql \
--with-charset=euc_kr \
--with-extra-charsets=none \
--with-mysqld-user=mysql \
--sysconfdir=/etc \
--with-innodb \
--enable-thread-safe-client \
--with-mysqld-ldflags=-all-static \
--with-client-ldflags=-all-static
=============================
ÀÚµ¿½ÃÀÛ ½ºÅ©¸³Æ® »ý¼º
cp -fp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
ln -s /etc/init.d/mysqld /etc/rc3.d/S87mysqld
=============================
DB »ý¼º ¹× °èÁ¤ »ý¼º
insert into db values ('%','xxxmdb','manager','y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y','y','y');
insert into user values ('localhost','manager',password('xxxxx'), 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', '','','','',0,0,0);
| |
|
|
|
|
|
|