MySQL Install

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

MySQL Install

2008/06/16
mryoshio

MySQL Install
Index

Summary 2
Notice 2
Environment 3
Software 3
Install & Configure MySQL 4
Download 4
Install 4
Configure 4
Check it works 5
Start MySQL 5

MySQL Install
Summary

This report shows how to setup MySQL.

See other references if you need more details.

Notice
The words like “mryoshio” is example.It doesn’t have special meanings.

Please replace it with your favorite one.

MySQL Install
Environment

Software

MySQL Server
OS CentOS 5.1

MySQL 5.0.51b

MySQL Install
Install & Configure MySQL

Download
- Go to MySQL Download site.
http://dev.mysql.com/downloads/mysql/5.0.html#downloads

- Download mysql-5.0.51b.tar.gz on ~/.

Install
- Execute following commands.

# yum install gcc


# yum install ncurses-devel
# yum install gcc-c++
# cd ~
# tar xvzf mysql-5.0.51b.tar.gz
# cd
# ./configure --prefix=/usr/local/mysql/5.0.51b
# make all
# make install
# ln -s /usr/local/mysql/5.0.51b /usr/local/mysql/current
# ./scripts/mysql_install_db --user=mryoshio

Configure
- Copy sample config file to /etc/.

# cp support-files/my-small.cnf /etc/my.cnf

MySQL Install
Check it works

Start MySQL
# cd /usr/local/mysql/current
# ./bin/mysqld_safe --user=mryoshio &
# ./bin/mysql -u root

It’s OK if you find prompt like “mysql>” .

MySQL Install

You might also like