前提・実現したいこと
本を読みながら サーバ構築の勉強中です。
サブのPC(raspberry PiにCentOS7 ; ローカルIP 192.168.0.10) にテスト用としてサーバ環境をつくって
めいんPC (ローカルIP 192.168.0.50)からアクセスしています。
発生している問題・エラーメッセージ
メインPCから http://192.168.0.10 (テスト用サーバのローカルIP)/myPhpAdminにログインしたいができません。
ログイン画面自体は表示できるけど、そもそもユーザ名とパスワードが何なのかよくわかりません。
エラーメッセージ (設定した内容にもよるが今は↓のエラーがでる)
設定ファイルに定義されている管理ユーザ(controluser)での接続に失敗しました。
試したこと
/etc/phpMyAdmin/config.inc.php のかきかえ
$cfg['Servers'][$i]['connect_type'] = 'tcp';
と設定変更してみる
$cfg['Servers'][$i]['host'] に 192.168.0.10
と入れてみる → だめ
$cfg['Servers'][$i]['host'] に 127.0.0.1
と入れてみる → だめ
$cfg['Servers'][$i]['controluser'] = 'root';
としパスワードもせってしてこの情報でログインしてみる → ダメ
$cfg['Servers'][$i]['user']
に適当にユーザ名を書いてパスワードも設定して、この情報でログインしてみる → ダメ
補足情報(FW/ツールのバージョンなど)
/etc/phpMyAdmin/config.inc.php の現在の状況
$cfg['Servers'][$i]['host'] = '127.0.0.1'; // MySQL hostname or IP address 25 $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port 26 $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default sock et 27 $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket' ) 28 $cfg['Servers'][$i]['extension'] = 'mysqli'; // The php MySQL extension to use ('mysql' or 'mysql i') 29 $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection 30 // (requires PHP >= 4.3.0) 31 $cfg['Servers'][$i]['controluser'] = 'root'; // MySQL control user settings 32 // (this user must have read-only 33 $cfg['Servers'][$i]['controlpass'] = 'xxxx'; // access to the "mysql/user" 34 // and "mysql/db" tables). 35 // The controluser is also 36 // used for all relational 37 // features (pmadb) 38 $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie bas ed)? 39 $cfg['Servers'][$i]['user'] = 'mizu'; // MySQL user 40 $cfg['Servers'][$i]['password'] = 'xxxxx'; // MySQL password (only needed 41 // with 'config' auth_type) 42 $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only 43 // this db is displayed in left frame 44 // It may also be an array of db-names, where sortin g order is relevant. 45 $cfg['Servers'][$i]['hide_db'] = ''; // Database name to be hidden from listings @
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。