«   2021/05   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
05-08 06:43
Notice
Today
9
Total
1,423,023
관리 메뉴

변군이글루

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

* 리눅스

[MySQL] mysql(mysql-5.0.44) 설치

변군 변군이글루 2013. 9. 3. 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
댓글쓰기 폼