まず、「mysql-4.0.21-win.zip」これをインストール。
名前を指定して実行から、「E:¥mysql¥bin¥winmysqladmin.exe」を実行し、特権ユーザーのIDとパスワードを設定する。
タスクバーにある、OracleとかSQL Serverでおなじみの信号機のアイコンをクリックして、Show meを選択。「my.ini Setup」タブを開いて[mysqld] セクションに以下の行を追加。
default-character-set=sjis
続いて、Create ShortCut on Start MenuボタンとSave Modificationボタンをそれぞれクリック。で、MySQLを一度再起動(Stop the Service -> Start the Service)。
PerlにDBのインターフェイスをインストールする。ActivePerlのインストール時に「Enable PPM3 to send profile info to ASPN」にチェックをつけないでインストールすると、PPM.batが実行できないので、再インストールしました(´Д`;)ヾ。
コマンドプロンプトでPPMを実行。
PPM – Programmer’s Package Manager version 3.1.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a devision of Sophos.
Entering interactive shell. Using Term::ReadLine::Stub as readline library.
Type ‘help’ to get started.
ppm>
プロンプトがでたら
ppm> install DBD-mysql
ppm> install DB_File
これらを実行。モジュールがそれぞれダウンロードされてインストールされます。
Your server has DB_File installed (version 1.810).
DBD::mysql…
Your server has DBD::mysql installed (version 2.9004).
Image::Magick…
Your server does not have Image::Magick installed.
あれ、Image Magickがインストールされてない(´Д`;)ヾ。ということで、MySQLに関係ないけど、
Image Magickもインストール。
Image Magick Windows Executable 6.0.7-3 Stable
http://www.imagemagick.org/www/download.html
インストールするときに、「Install PerlMagick for ActiveState Perl …」にチェックするのを忘れずに。
最後にデータベースを作成。
Welcome to the MySQL monitor. Commands end with ; or ¥g.
Your MySQL connection id is 4 to server version: 4.0.21-nt
Type ‘help;’ or ‘¥h’ for help. Type ‘¥c’ to clear the buffer.
mysql> create database mtdb;
Query OK, 1 row affected (0.00 sec)
mysql> ¥q
Bye
mt.cfgをいじって、mt-load.cgiを実行すればMT環境の出来上がり。
おまけ。
phpMyAdminもインストールしようと、ダウンロードサイトへ。
http://www.phpmyadmin.net/home_page/downloads.php
ここで、2.5.6をダウンロードして実行してみると、まったく動かない。というか何も表示されない。設定のせいだと、あれこれ確認しても、直らない・・・。
phpMyAdmin 2.5.7-pl1をインストールしたら動きました(´Д`;)ヾ。


コメント