こんにちは,五十嵐です.Catalyst の導入が終わり,
catalysttest の設定まで終了しました.
にしたがって,MySQL の準備を行います.私の環境には MySQL がインストールされていなかったので,そこから始めてみます.
スーパーユーザによるMySQL の導入
# http_proxy=http://my.proxy.co.jp:8080 yum -y install mysql-server
...
Complete!
#
MySQL の起動
# chkconfig --list mysqld; chkconfig mysqld on && chkconfig --list mysqld
mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
#
# (cd / ; env - /etc/rc.d/init.d/mysqld start)
MySQL データベースを初期化中: Installing all prepared tables
Fill help tables
...
MySQL を起動中: [ OK ]
#
MySQL のデータベースの確認
# mysqlshow
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
#
データベーステーブルの作成
$ cat testbookmark-mysql-create.txt
create table testbookmark (
bookmark_id integer auto_increment primary key,
url varchar(255) ,
title varchar(255) ,
record_time timestamp ,
comment text
);
$ mysql test < testbookmark-mysql-create.txt
$ mysql test
...
mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| testbookmark |
+----------------+
1 row in set (0.00 sec)
mysql> quit
Bye
$
これで,MySQL の準備が整いました.
次回に続く.
完全なログは長いので,登録ユーザにのみ公開します.
このエントリを全て読むにはメンバー登録が必要です。