Help us understand the problem. What is going on with this article?

古い MySQL (5.0.77) をビルドしてインストールする

More than 3 years have passed since last update.

ちょっと古い CentOS (5.4) で古い MySQL をインストールする必要があったのでメモ

MySQL インストール

参考: http://myknowledge.seesaa.net/article/99361578.html

cd /usr/local/src
yum -y install gcc gcc-c++ ncurses-devel
wget --no-check-certificate http://downloads.mysql.com/archives/mysql-5.0/mysql-5.0.77.tar.gz

tar -xvf mysql-5.0.77.tar.gz
cd /usr/local/src/mysql-5.0.77
./configure \
    --prefix=/usr/local/mysql \
    --with-mysqld-user=mysql \
    --with-client-ldflags=-all-static \
    --with-mysqld-ldflags=-all-static \
    --with-charset=utf8 \
    --with-collation=utf8_general_ci \
    --with-extra-charsets=all \
    --enable-assembler \
    --enable-local-infile

make
make install

MySQL 初期化設定

groupadd -r mysql
useradd -r -g mysql mysql
/usr/local/mysql/bin/mysql_install_db \
    --basedir=/usr/local/mysql \
    --datadir=/var/lib/mysql \
    --user=mysql
chown -R mysql:mysql /usr/local/mysql

cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/
service mysql.server start

/usr/local/mysql/bin/mysql_secure_installation

自動起動設定

chkconfig --add mysql.server
chkconfig mysql.server on
chkconfig --list|grep mysql
mysql.server    0:off   1:off   2:on    3:on    4:on    5:on    6:off
bells17
SW Engineer, Kubernetes & IDCF Cloud. Kubernetes/Cloud Native/Golang/Cloudstack/Rancher Github: http://github.com/bells17 Blog: http://medium.com/@bells17
http://medium.com/@bells17
idcf
未来をささえる、Your Innovative Partner
http://www.idcf.jp/cloud/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした