![]()
データベース「MySQL」にはブラウザ上で操作するツール「phpMyAdmin」があります。
「phpMyAdmin」が動作するには、CGIである「PHP」が動作しているWEBサーバが必要です。
(1)「phpMyAdmin」のダウンロード
ソフトのダウンロードを行います。

バージョンは日々更新されます。
ここでは「phpMyAdmin-2.7.0.zip」を利用します。
(2)ダウンロードファイルの解凍
「phpMyAdmin-2.7.0.zip」を解凍し、解凍されたフォルダ名を「phpMyAdmin」にします。
(3)フォルダの設置
「php」フォルダを"D:/home/"に移動させます。
※"D:/home/"はWebサーバ「Apache」インストール時に作成しています。
(4)設定ファイルの準備
「config.default.php」をコピーして「config.inc.php」に変更します。
(5)「config.inc.php」の変更
以下の各所を変更します。
$cfg['PmaAbsoluteUri'] = 'http://設置IP/phpMyAdmin/';
$cfg['Servers'][$i]['host'] = '設置ホスト';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['password'] = 'MySQLユーザID';
$cfg['Servers'][$i]['auth_type'] = 'config';
↓
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['DefaultLang'] = 'en-iso-8859-1';
↓
$cfg['DefaultLang'] = 'ja-sjis';
$cfg['DefaultCharset'] = 'iso-8859-1';
↓
$cfg['DefaultCharset'] = 'SHIFT_JIS';
(6)「php.ini」を変更
PHPの設定ファイル「php.ini」を変更します。
output_buffering = On
default_charset = "Shift_JIS"
mbstring.internal_encoding = EUC-JP
↓
mbstring.internal_encoding = SJIS
mbstring.http_input = auto
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none;
extension=php_mbstring.dll
extension=php_mysql.dll
このままだとApacheを再起動するとエラーになるので、
\php\libmysql.dllをC:\WINDOWSにコピーします。
(7)Apacheを再起動
「php.ini」を変更したので、Apacheを再起動します。
(10)動作確認
ブラウザで確認します。
※"d:/home/phpmyadmin"にあるなら、「http://localhost/phpmyadmin」
