0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

phpMyAdmin 2系の使い方

Last updated at Posted at 2015-08-17

ダウンロード

設定

cp -a config.sample.inc.php config.inc.php
config.inc.php
+ $cfg['blowfish_secret'] = 'blowfish_secretauth!';

+ $cfg['Servers'][$i]['host'] = '192.168.11.11';
+ $cfg['Servers'][$i]['auth_type'] = 'config';
+ $cfg['Servers'][$i]['user'] = 'root';
+ $cfg['Servers'][$i]['password'] = 'password1';

+ $cfg['Lang']     = 'ja-sjis';
  • ユーザ名、パスワードをconfig.inc.phpに記述する場合、

    • $cfg['Servers'][$i]['auth_type'] = 'config';を指定。
  • 文字コードを指定する場合、$cfg['Lang']値を用いる。

session

PHP Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_v7tlv7sat1q7dave3hcogt23r45gulhg, O_RDWR) failed: No such file or directory (2) in /phpmyadmin/libraries/session.inc.php on line 87

/var/lib/php/session/を作成する
sudo install -o apache -g apache -m 0755 -d /var/lib/php/session/

japanese-sjis.inc.php のsyntaxエラー対応

C:\wwwroot\phpMyAdmin\lang\japanese-sjis.inc.php をメモ帳で開いて「能'」という文字列を検索し、それをすべて別の文字に置き換える
php.iniをメモ帳で開いて「magic_quotes_gpc = ???」という項目を探し、それを「magic_quotes_gpc = Off」と設定する (その後、Webサーバを再起動する)

2002 - サーバが応答しません

(あるいはローカルの MySQL サーバのソケットが正しく設定されていません)

config.inc.php
  $cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
- $cfg['Servers'][$i]['connect_type'] = 'tcp';
+ $cfg['Servers'][$i]['connect_type'] = 'socket';
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?