Make user & group for MySQL
# useradd -g mysql mysql
Install MySQL
# tar xzfv mysql-5.1.59.tar.gz
# cd mysql-5.1.59.tar.gz
# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=utf8 --with-collation=utf8_general_ci --with-plugins=innobase
# make
# make install
Configuration
# cp support-files/my-small.cnf /etc/my.cnf
# chown root /etc/my.cnf
# chgrp root /etc/my.cnf
# chmod 644 /etc/my.cnf
# vi /etc/my.cnf
[mysqld]
user = mysql
Install DB
# /usr/local/mysql/bin/mysql_install_db --user=mysql
Run MySQL
# /usr/local/mysql/bin/mysqld_safe --user=mysql &
# mysql -u root -p
Automatic startup
# cp support-files/mysql.server /etc/init.d/mysql
# chmod 755 /etc/init.d/mysql
# chkconfig --add mysql
# chkconfig --level 35 mysql on
reference
- how to install mysql
'Server-Side > Linux' 카테고리의 다른 글
[Maven] 자동 빌드 및 테스트를 위한 경로 설정 (0) | 2011.09.24 |
---|---|
how to install Python2.7 on ubuntu (0) | 2011.09.09 |
[리눅스] 방화벽 포트 열기 (1) | 2011.09.08 |
how to install pymongo on linux (0) | 2011.08.22 |
[crontab] /usr/bin/python^M: bad interpreter: No such file or directory (0) | 2011.08.22 |