[root@centos ~]# mysql -u root -p
Enter password:mysql_root_pass ←mysqlのrootパスワードを入力
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 19
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE wordpress;
mysql> EXIT;
[root@centos ~]# wget http://ja.wordpress.org/wordpress-3.1-ja.tar.gz
[root@centos ~]# tar zxvf wordpress-3.1-ja.tar.gz
[root@centos ~]# chown -R apache:apache wordpress
[root@centos ~]# mv wordpress /var/www/html/
[root@centos ~]# cd /var/www/html/wordpress
[root@centos wordpress]# mv wp-config-sample.php wp-config.php
[root@centos wordpress]# vi wp-config.php
/** WordPress のためのデータベース名 */
define('DB_NAME', 'database_name_here');
↓
define('DB_NAME', 'wordpress'); ←変更(データベース名はwordpress)
/** MySQL データベースのユーザー名 */
define('DB_USER', 'username_here');
↓
define('DB_USER', 'root'); ←変更(MySQLのrootユーザーを記入)
/** MySQL データベースのパスワード */
define('DB_PASSWORD', 'password_here');
↓
define('DB_PASSWORD', 'mysql_root_pass'); ←変更(MySQLのrootパスワードを記入)
[root@centos wordpress]# cd
[root@centos ~]# rm -f wordpress-3.1-ja.tar.gz