100% found this document useful (2 votes)
221 views

MySQL Install

This document provides instructions for installing and configuring MySQL on a CentOS 5.1 system. It details downloading MySQL 5.0.51b, running the installation and configuration scripts, copying sample configuration files, and starting the MySQL server to confirm it is working properly.

Uploaded by

mryoshio
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
221 views

MySQL Install

This document provides instructions for installing and configuring MySQL on a CentOS 5.1 system. It details downloading MySQL 5.0.51b, running the installation and configuration scripts, copying sample configuration files, and starting the MySQL server to confirm it is working properly.

Uploaded by

mryoshio
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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