MySQL Install

2008/06/16 mryoshio

MySQL Install

Index
Summary
Notice

2 2 3 3 4 4 4 4 5 5

Environment
Software

Install & Configure MySQL
Download Install Configure

Check it works
Start MySQL

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 MySQL CentOS 5.1 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

Sign up to vote on this title
UsefulNot useful