アーカイブ

« 1 ... 3 4 5 (6)

Tyzohブログ - ikarashiさんのエントリ
 ikarashiさんのエントリ配信

2007/01/15
Catalyst を使ってみる #002

執筆者: ikarashi (11:51 pm)
こんにちは,五十嵐です.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 の準備が整いました.次回に続く.


完全なログは長いので,登録ユーザにのみ公開します.


このエントリを全て読むにはメンバー登録が必要です。
ikarashiさんのブログを読む | コメント (0) | トラックバック数 (0) | 閲覧数 (5204)
Trackback is not accepted now.
印刷用ページ 友達に送る
 
投稿された内容の著作権はコメントの投稿者に帰属します。
サイト内検索
ブログ カレンダー
«  «  2008 3月  »  »
24 25 26 27 28 29 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5