Compile and Install LAMP Server.

Linux System Administration

Install MySQL 5

# cd /usr/local/src

Create a new user and group called ‘mysql’

# groupadd mysql
# useradd -g mysql mysql

For MySQL, go to and choose an appropriate mirror to get the newest MySQL version

# wget
# tar -vxf mysql-5.5.28-linux2.6-i686.tar.gz
# cd mysql-5.5.28-linux2.6-i686
# chown -R root.root *
# make clean

Compile and install MySQL

#./configure \ –prefix=/usr/local/mysql \
–localstatedir=/usr/local/mysql/data \
–disable-maintainer-mode \
–with-mysqld-user=mysql \
–with-unix-socket-path=/tmp/mysql.sock \
–without-comment \
–without-debug \

# make
# make install

Configure MySQL

MySQL is “installed” but we have a few more steps until it’s actually “done” and ready to start. First run the script which actually sets up MySQL’s internal database (named, oddly enough, mysql).

# ./scripts/mysql_install_db

Then we want to set the proper ownership for the MySQL directories and data files, so that only MySQL (and root) can do anything with them.

# chown -R root:mysql…

View original post 556 more words

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s