サポートデータベースを作成したいと思います。config.inc.php ファイルに、データベース (ホスト、ログイン、パスワード) にログインするための情報があります。
しかし、定義されたすべてのデータベースにグローバルユーザーを設定したいと思います。そのため、グローバル ログインとパスワードを作成し、定義したすべてのデータベースを管理できます。しかし、私はそれを行う方法を知りませんか?
これは私のconfig.inc.phpの断片です:
/*
* Servers configuration
*/
$i = 0;
/* Authentication type */
$i++;
$cfg['Servers'][$i]['user'] = 'global user';
$cfg['Servers'][$i]['password'] = 'password global user\'s'; // use here your password
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
/* Server parameters */
$i++;
$cfg['Servers'][$i]['host'] = 'host.frist.database';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Servers'][$i]['user'] = 'user.frist.bazy';
$cfg['Servers'][$i]['password'] = 'password.frist.database';
$i++;
$cfg['Servers'][$i]['host'] = 'host.second.database';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Servers'][$i]['user'] = 'user.second.bazy';
$cfg['Servers'][$i]['password'] = 'password.second.database';
わからない、どうしよう…