mysql 초간단 설치

by ADMINPLAY posted Oct 15, 2009
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

groupadd -g 400 mysql;

useradd -u400 -g400 -d /usr/local/mysql -s /bin/false mysql;
 

./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr --with-mysql-user=mysql --with-extra-charsets=all --enable-thread-safe-client

make & make install


/usr/local/mysql/bin/mysql_install_db

 

cp /usr/local/src/mysql-5.0.45/support-files/my-huge.cnf /etc/my.cnf


chown -R mysql:mysql /usr/local/mysql

chown -R mysql:mysql /usr/local/mysql/data

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

chkconfig --add mysqld

vi /root/.bash_profile 패스추가

/usr/local/mysql/bin

source /root/.bash_profile

/etc/init.d/mysqld start

mysqladmin -u root password 패스워드

mysql -u root -p