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