19

エラーは次のとおりです。

phpMyAdmin 構成ストレージが完全に構成されていないため、一部の拡張機能が無効になっています。その理由を知りたい場合は、ここをクリックしてください。
Suhosin で実行されているサーバー。考えられる問題については、ドキュメントを参照してください。

$cfg['Servers'][$i]['pmadb'] ... OK

$cfg['Servers'][$i]['relation'] ... 不可 [ ドキュメント ]
一般リレーション機能: 無効

$cfg['Servers'][$i]['table_info'] ... not OK [ ドキュメント ]
表示機能: 無効

$cfg['Servers'][$i]['table_coords'] ... ダメ [ドキュメンテーション]

$cfg['Servers'][$i]['pdf_pages'] ... 不可 [ ドキュメント ]
PDF の作成: 無効

$cfg['Servers'][$i]['column_info'] ...not OK [ ドキュメント ]
列コメントの表示: 無効
ブラウザ変換: 無効

$cfg['Servers'][$i]['bookmarktable'] ... 不可 [ ドキュメント ]
ブックマークされた SQL クエリ: 無効

$cfg['Servers'][$i]['history'] ...not OK [ ドキュメント ]
SQL 履歴: 無効

$cfg['Servers'][$i]['designer_coords'] ... 不可 [ ドキュメント ]
デザイナー: 無効

$cfg['Servers'][$i]['tracking'] ... OK ではありません [ ドキュメント ]
追跡: 無効

$cfg['Servers'][$i]['userconfig'] ... not OK [ ドキュメント ]
ユーザー設定: 無効

私の config.inc.php ファイルは次のとおりです。

/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use setup/
 *
 * All directives are explained in Documentation.html and on phpMyAdmin
 * wiki <http://wiki.phpmyadmin.net>.
 *
 * @package phpMyAdmin
 */

/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'myblowfishpass';

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;

/*
 * phpMyAdmin configuration storage settings.
 */

/* User used to manipulate with storage */
 $cfg['Servers'][$i]['controluser'] = 'dave1';
 $cfg['Servers'][$i]['controlpass'] = 'mypassword';

/* Storage database and tables */
 $cfg['Servers'][$i]['pmadb'] = 'wordpress_db'; //the name of my db table
 $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; //does the pma_ need to change to dave1_?
 $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]['tracking'] = 'pma_tracking';
 $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
 $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
/* Contrib / Swekey authentication */
 $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

/**
 * Defines whether a user should be displayed a "show all (records)"
 * button in browse mode or not.
 * default = false
 */
  $cfg['ShowAll'] = true;

/**
 * Number of rows displayed when browsing a result set. If the result
 * set contains more rows, "Previous" and "Next".
 * default = 30
 */
  $cfg['MaxRows'] = 50;

/**
 * Use graphically less intense menu tabs
 * default = false
 */
//$cfg['LightTabs'] = true;

/**
 * disallow editing of binary fields
 * valid values are:
 *   false  allow editing
 *   'blob' allow editing except for BLOB fields
 *   'all'  disallow editing
 * default = blob
 */
//$cfg['ProtectBinary'] = 'false';

/**
 * Default language to use, if not browser-defined or user-defined
 * (you find all languages in the locale folder)
 * uncomment the desired line:
 * default = 'en'
 */
  $cfg['DefaultLang'] = 'en';
//$cfg['DefaultLang'] = 'de';

/**
 * default display direction (horizontal|vertical|horizontalflipped)
 */
//$cfg['DefaultDisplay'] = 'vertical';


/**
 * How many columns should be used for table display of a database?
 * (a value larger than 1 results in some information being hidden)
 * default = 1
 */
//$cfg['PropertiesNumColumns'] = 2;

/**
 * Set to true if you want DB-based query history.If false, this utilizes
 * JS-routines to display query history (lost by window close)
 *
 * This requires configuration storage enabled, see above.
 * default = false
 */
//$cfg['QueryHistoryDB'] = true;

/**
 * When using DB-based query history, how many entries should be kept?
 *
 * default = 25
 */
//$cfg['QueryHistoryMax'] = 100;

/*
 * You can find more configuration options in Documentation.html
 * or here: http://wiki.phpmyadmin.net/pma/Config
 */
4

8 に答える 8

62

私も同じ問題を抱えていました。Cookieとキャッシュをクリアするとうまくいきました。それを試してみてください

于 2013-02-17T18:08:42.270 に答える
9

「create_tables.sql」を使用してデータベースとテーブルを作成している場合は、テーブル名pma__をに変更しpma_ます。(2 つのアンダースコアを 1 つのアンダースコアに変更)

または、「config.inc.php」のテーブル名pma_pma__(1 つのアンダースコアを 2 つのアンダースコアに変更) に変更します。
たとえばpma_bookmarkpma__bookmark

$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]['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]['table_uiprefs'] = 'pma__table_uiprefs';
于 2013-05-11T17:25:08.907 に答える
5

VestaCP チームは、phpMyAdmin のエラー修正プログラムを作成し、テストに成功しました (「phpMyAdmin 構成ストレージが完全に構成されていないため、一部の拡張機能が無効になっています」という迷惑なメッセージはもうありません)。修正が有用であり、ユーザーに役立つことを願っています。

Github のページ: https://github.com/skurudo/phpmyadmin-fixer

スクリプトの機能:

  • ユーザー root から動作します。
  • /etc/phpmyadmin/config.inc.php 内の変更、値の修正。
  • /root フォルダーにある /etc/phpmyadmin/config.inc.php のバックアップを作成します。mysql pma ユーザー / およびテーブル phpmyadmin を追加します (ユーザー "pma" またはテーブル "phpmyadmin" が既に存在する場合、スクリプトはそれらを削除します!);
  • データベース phpmyadmin のテーブルをダウンロードして追加します。
  • クリーンな一時ファイル、残りの pma.txt (pma@localhost のパスワードを含む)、および古い構成。
于 2016-01-23T20:50:28.287 に答える
2
$cfg['Servers'][$i]['user'] = 'root'; //mysql username here
$cfg['Servers'][$i]['password'] = 'password'; //mysql password here

後に上記の構成行を追加してみてください$cfg['Servers'][$i]['connect_type'] = 'tcp';

これらも機能しない場合は、config.sample.inc.phpをコピーして、新しい構成ファイルを試してください。上記の構成行があることを確認してください。正常に動作するかどうかを確認してから、変更を加える場合は段階的に変更を開始します。

指定するユーザー名とパスワードは、mysqlコマンドプロンプトからログインできる必要があることに注意してください。

于 2012-11-16T03:51:10.657 に答える
2

次の手順に従ってください。

  1. phpmyadmin という名前のデータベースを作成します データベース sql/create_tables.sql をインポートします
  2. ユーザーを作成し、ユーザーにそのデータベースへのアクセスを許可します (phpmyadmin ですべての権限を付与します。* TO user@'localhost' IDENTIFIED BY 'password';)
  3. 設定ファイルを見つけて編集し、config.inc.php でこれらの行を有効にします (各行の前にある # を削除します)

    /* User used to manipulate with storage */
     $cfg['Servers'][$i]['controlhost'] = 'localhost';
     $cfg['Servers'][$i]['controluser'] = 'phpmyadmin_pma';
     $cfg['Servers'][$i]['controlpass'] = 'yourpassword';
    
    /* 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';
    
     /* These lines I added-in because they are not exist in the config_sample.inc.php */
     $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';
     $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
     $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
     $cfg['Servers'][$i]['export_templates']  = 'pma__export_templates';
    

pma__ の間に 2 つのアンダースコアがあることに注意してください。データベースのテーブル名と一致していることを確認する必要があります。

このエラーが表示された場合: $cfg['Servers'][$i]['userconfig'] ... not OK [ ドキュメント ] ユーザー設定: 無効

つまり、構成設定がテーブルの名前と一致していないか、ユーザーにデータベースへのアクセス権がありません。

于 2016-08-04T02:56:10.930 に答える
0

一番下までスクロールすると、エラーページが表示されます。ログアウトして再度ログインするようにというヒントがあります。これを行うとうまくいきます

于 2014-01-28T06:19:12.110 に答える
0

1) mysql サーバーに phpmyadmin データベースがあるかどうかを確認します。Phpmyadmin は、そのデータベースの作成を支援します。

2) pma ユーザーがいるかどうかを確認します。作成しない場合:

CREATE USER  'pma'@'localhost' IDENTIFIED BY 'yourPassword';

pma パスワードは、config.inc.php で指定されたものと同じでなければなりません

3) pma に権限を付与します。

GRANT ALL PRIVILEGES ON phpmyadmin.* TO `pma`@`localhost` WITH GRANT OPTION;
FLUSH PRIVILEGES;

4) キャッシュと Cookie をクリアします。

于 2019-05-17T23:04:33.663 に答える