phpMyAdmin 2.8.2.1 設定メモ

なんか意外とWEBに情報少なかったのでメモ。

  1. http://www.phpmyadmin.net/ から最新一式をDL
  2. http://インスト先パス/scripts/setup.php を実行
  3. Servers の [Add] ボタンを押す
  4. 特に別サーバでなければ、Server hostname は [localhost] のまま
  5. User for config auth / Password for config auth にデータベースのユーザ名/パスワード入力
  6. そのまま下のほうの緑色の文字[Add]ボタンを押す。
  7. [Download] をクリックすると設定ファイルがダウンロードできる。
  8. それを phpMyAdmin をいれた直下にコピー
  9. http://インスト先パス/index.php にアクセス!
  10. 画面がでれば成功!

※ダウンロードできる設定ファイルの名前は、config.inc.php です。違う名前でダウンロードされちゃってたら要リネーム!

参考までに、私の環境で動いた設定ファイル

<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.8.2 setup script by Michal Čihař <michal@cihar.com>
* Version: $Id: setup.php,v 1.23.2.10 2006/05/15 07:57:30 nijel Exp $
* Date: Tue, 08 Aug 2006 11:32:02 GMT
*/

/* Servers configuration */
$i = 0;

$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'XXXXXX';

?>