●mysql-server がインストールされているか確認
[root@www ~]# yum list installed | grep mysql-server mysql-server.x86_64 5.0.95-1.el5_7.1 installed●なければ mysql をインストール
[root@www ~]# yum info mysql-server [root@www ~]# yum -y install mysql-server●mysql-server を起動
[root@www ~]# service mysqld start●root のパスワード設定
[root@www ~]# mysqladmin --user=root password ********●mysql-server へログオン確認
[root@www ~]# mysql --show-warnings -u root -p●デフォルトのデータベース確認
mysql> show databases; mysql> quit;●自動起動の確認
[root@www ~]# chkconfig --list | grep mysql mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off●自動起動になっていなければ自動起動に変更
[root@www ~]# chkconfig mysqld on日本語(UTF8)を使用する場合...↓
[root@www ~]# mv /etc/my.cnf /etc/my.cnf.org [root@www ~]# cp /etc/my.cnf.org /etc/my.cnf [root@www ~]# vi /etc/my.cnf [root@www ~]# diff /etc/my.cnf.org /etc/my.cnf 12a13,14 > default-character-set = utf8 > 15a18,24 > > [mysql] > default-character-set = utf8 > > [mysqldump] > default-character-set = utf8 >としてmysqlサーバ再起動。