변군이글루

[MySQL] mysql(mysql-5.0.44) 설치 본문

및___APM

[MySQL] mysql(mysql-5.0.44) 설치

변군 변군이글루 2013.09.03 00:51

mysql 설치

 

다운로드 : http://downloads.mysql.com/archives.php

ver : mysql-5.0.44

 

# useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -u 27 mysql

 

# ./configure --prefix=/usr/local/mysql --with-charset=euckr

 

# make

 

# make install

 

# cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf

 

-- 용도별 카피

my-small.cnf : 64M

my-medium.cnf 128-256M

my-large.cnf 512M

my-huge.cnf 1~2G

 

# /usr/local/mysql/bin/mysql_install_db

 

# cd /usr/local/mysql

 

# chown mysql.mysql var -R

 

# /usr/local/mysql/bin/mysqld_safe &

 

# ps ax | grep mysqld

 

# cp -p /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld

 

# ln -s /usr/local/mysql/bin/mysql /usr/bin/

 

# ln -s /usr/local/mysql/bin/mysqldump /usr/bin/

 

# /usr/local/mysql/bin/mysqladmin -u root password "비밀번호"

 

 

 

 

 

0 Comments
댓글쓰기 폼