ホームページ  >  記事  >  データベース  >  phpMyAdminの高度な機能を有効にする方法の詳細な説明

phpMyAdminの高度な機能を有効にする方法の詳細な説明

藏色散人
藏色散人転載
2020-01-26 16:22:153487ブラウズ

phpMyAdminの高度な機能を有効にする方法の詳細な説明

次のコラム phpmyadmin チュートリアル では、phpMyAdmin の高度な機能を設定する方法を紹介します。困っている友達!

注: この記事は、LNMP 環境を使用した phpMyAdmin5.5 に基づいています

質問:

phpMyAdmin にログインします。 その後、メイン インターフェイスの下部に 2 つのプロンプト メッセージが見つかりました。

1 つのプロンプト メッセージは、「phpMyAdmin の高度な機能が完全にセットアップされておらず、一部の機能がアクティブ化されていません。理由を表示するには、ここをクリックしてください。」もう 1 つのメッセージは、「設定ファイルにはフレーズ パスワードが必要です。」です。

これら 2 つのメッセージが表示されると、phpMyAdmin の一部の機能が使用できなくなることを意味します。

この問題を解決する手順は 3 つの部分に分かれています。

create_tables.sql ファイルをアップロードし、config.inc.php を構成します。ファイルを編集し、config.default.phpファイルなどを変更します。

解決策:

1. phpmyadmin データベースの作成:

phpMyAdmin ディレクトリを開き、create_tables.sql

cd ./sql

を見つけて確認します。 create_tables.sql に移動し、その中の SQL ステートメントをコピーして実行すると、phpmyadmin データベースが正常に作成されます

2. config.inc.php ファイルを設定します

phpMyAdmin フォルダーを開いて config.sample.inc.php ファイルを見つけ、その名前を config.inc.php ファイルに変更します。

3. config.inc.php ファイルを開き、次のステートメントを見つけます:

/* Storage database and tables */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma__relation';
// $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
// $cfg['Servers'][$i]['history'] = 'pma__history';
// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
// $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
// $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
// $cfg['Servers'][$i]['recent'] = 'pma__recent';
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
// $cfg['Servers'][$i]['users'] = 'pma__users';
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';

/* ストレージ データベースとテーブルの下の各ステートメントの前にある // (二重斜体) を置き換えます。 */ ステートメント すべてのバー) とスペースが削除されます。

注:

/* ストレージ データベースとテーブル */ 文の上に、次の 2 行の文があります:

// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';

必要な場合

$cfg['Servers'][$i]['controluser'] = '用户名';
$cfg['Servers'][$i]['controlpass'] = '密码';

4. config.default.php ファイルを変更する

phpMyAdmin\libraries\ フォルダーにある config.default.php ファイルを開きます。

config.default.php ファイル内で

1)

$cfg['Servers'][$i]['pmadb'] = を見つけます。 '';

次のように変更します:

$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';

2) 検索:

$cfg['サーバー'][$i]['bookmarktable'] = '';

次のように変更します:

$cfg['サーバー'][$i ]['bookmarktable'] = 'pma__bookmark';

3) 検索:

$cfg['Servers'][$i]['relation'] = '';

次のように変更します:

$cfg['Servers'][$i]['relation'] = 'pma__relation';

4) 検索:

$ cfg['Servers'][$i]['table_info'] = '';

は次のように変更されます:

$cfg['Servers'][$i]['table_info' ] = 'pma__table_info';

5) 検索:

$cfg['Servers'][$i]['table_coords'] = '';

次のように変更します:

$cfg['サーバー'][$i]['table_coords'] = 'pma__table_coords';

6) 検索:

$cfg['サーバー' ] [$i]['pdf_pages'] = '';

次のように変更します:

$cfg['サーバー'][$i]['pdf_pages'] = 'pma__pdf_pages';

7) 検索:

$cfg['Servers'][$i]['column_info'] = '';

次のように変更します:

$cfg['サーバー'][$i]['column_info'] = 'pma__column_info';

8) 検索:

$cfg['サーバー'][$i][ 'history'] = '';

次のように変更します:

$cfg['Servers'][$i]['history'] = 'pma__history';

9 ) 検索:

$cfg['Servers'][$i]['table_uiprefs'] = '';

次のように変更します:

$cfg['Servers ' ][$i]['table_uiprefs'] = 'pma__table_uiprefs';

10) 検索:

$cfg['サーバー'][$i]['tracking'] = ' ' ;

次のように変更します:

$cfg['Servers'][$i]['tracking'] = 'pma__tracking';

11) 検索:

$cfg['Servers'][$i]['designer_coords'] = '';

次のように変更します:

$cfg['Servers'][$i] [ 'designer_coords'] = 'pma__designer_coords';

12) 検索:

$cfg['サーバー'][$i]['userconfig'] = '';

次のように変更します:

$cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';

13) 検索:

$cfg [ 'サーバー'][$i]['最近'] = '';

次のように変更します:

$cfg['サーバー'][$i]['最近'] = ' pma__recent';

14) 検索:

$cfg['Servers'][$i]['f​​avorite'] = '';

次のように変更します:

$cfg['サーバー'][$i]['お気に入り'] = 'pma__favorite';

15) 検索:

$cfg['サーバー'][ $ i]['users'] = '';

次のように変更します:

$cfg['Servers'][$i]['users'] = 'pma__users';

16) 検索:

$cfg['サーバー'][$i]['ユーザーグループ'] = '';

次のように変更します:

$cfg['サーバー'][$i][ 'usergroups'] = 'pma__usergroups';

17) 検索:

$cfg['サーバー'][$i]['navigationhiding'] = '';

次のように変更します:

$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';

18) 検索:

$cfg[ 'サーバー'][$i]['savedsearches'] = '';

次のように変更されました:

$cfg['サーバー'][$i]['savedsearches'] = ' pma__savedsearches';

ヒント:

実際には、上記の文は構成から削除された // (二重斜体) です。 inc.phpファイル(バー)の文章。

config.default.php ファイルを保存して閉じます。

phpMyAdmin に再度ログインします。

以上がphpMyAdminの高度な機能を有効にする方法の詳細な説明の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明:
この記事はcsdn.netで複製されています。侵害がある場合は、admin@php.cn までご連絡ください。