phpMyAdmin:リンクテーブルを操作するための追加機能が無効化されました


13

phpMyAdminバージョン3.2.1deb1のメインページでこのエラーが発生し ています。リンクテーブルを操作するための追加機能は無効になっています。理由を確認するには、ここをクリックしてください。 リンクをクリックすると、このレポートが表示されます。

$cfg['Servers'][$i]['pmadb'] ...    OK
$cfg['Servers'][$i]['relation'] ...     not OK [ Documentation ]
General relation features: Disabled

$cfg['Servers'][$i]['table_info'] ...   not OK [ Documentation ]
Display Features: Disabled

$cfg['Servers'][$i]['table_coords'] ...     not OK [ Documentation ]
$cfg['Servers'][$i]['pdf_pages'] ...    not OK [ Documentation ]
Creation of PDFs: Disabled

$cfg['Servers'][$i]['column_info'] ...  not OK [ Documentation ]
Displaying Column Comments: Disabled
Bookmarked SQL query: Disabled
Browser transformation: Disabled

$cfg['Servers'][$i]['history'] ...  not OK [ Documentation ]
SQL history: Disabled

$cfg['Servers'][$i]['designer_coords'] ...  not OK [ Documentation ]
Designer: Disabled

すでにスクリプトを使用してテーブルを作成しました。pmaユーザーにアクセス許可を割り当てました。そして、すべてが/etc/phpmyadmin/conf.inc.phpに設定されます

しかし、まだ機能していません...テーブルは空です。彼らは何かを持っているべきだと思います。私は関係と歴史の特徴に興味があります。明らかに私はドキュメントを読みました。他の何かがこれらの値を設定解除しているのでしょうか?大変ですか?

回答:


27

phpMyAdminからログアウトするか、セッションCookieを削除して、変更が行われたらリロードするだけです。


ネクロアンサーを試しますか?:-)それがそんなに簡単だったらいいのに、私も試してみた。橋を通過する水が多すぎたので、今は解決しました。
崩壊剤

それが解決策だとは信じられません!
etheros 09

これは私のために働いた。:)
ネイサンロング

2
wtf。これはどのように正解ですか?しかし、それは私にとってもうまくいきました。
ウィルシェーバー

くそー!私は推測したことがなかったでしょう。そして、私は最後の1時間を使って、あらゆる種類の深くて汚いmysqlトリックを試しました。ありがとう:)
PP。

3

どこでも見て、私はこのファイルを編集することになりました

/etc/dbconfig-common/phpmyadmin.conf

私がやろうとしていたことに関連するものは何もありませんでしたが、このコメントを見つけました

# automatically generated by the maintainer scripts of phpmyadmin
# any changes you make will be preserved, though your comments
# will be lost!  to change your settings you should edit this
# file and then run "dpkg-reconfigure phpmyadmin"

そのdpkg-reconfigure phpmyadminため、インストール時にすでに実行されていたにもかかわらず、実行しました。データベースを再作成するかどうかを尋ねられたので、答えは「いいえ」でした。

そしていま

$cfg['Servers'][$i]['pmadb'] ...  OK
$cfg['Servers'][$i]['relation'] ...  OK
General relation features: Enabled

$cfg['Servers'][$i]['table_info'] ...  OK
Display Features: Enabled

$cfg['Servers'][$i]['table_coords'] ...  OK
$cfg['Servers'][$i]['pdf_pages'] ...  OK
Creation of PDFs: Enabled

$cfg['Servers'][$i]['column_info'] ...  not OK [ Documentation ]
Displaying Column Comments: Disabled
Bookmarked SQL query: Enabled
Browser transformation: Disabled

$cfg['Servers'][$i]['history'] ...  OK
SQL history: Enabled

$cfg['Servers'][$i]['designer_coords'] ...  OK
Designer: Enabled

それはアップグレードではなく、テーブルが呼び出さpma_column_infoれ、真実は、私はもう気にしません。少なくとも今私が欲しかった機能は動作するでしょう


私は同じ問題を抱えていましたが、$ cfg ['Servers'] [$ i] ['pmadb']は最初は「not OK」でした。「dpkg-reconfigure」で「NO」と答えてもうまくいきませんでしたが、「はい」で答えました。
neu242


2

というメッセージが表示された場合

OK [ドキュメンテーション]」

しかし、最初の行($cfg['Servers'][$i]['pmadb'])でOKと表示され、phpMyAdmin URLのブラウザーCookieを削除できることがわかりました。

私も切り替えました

$cfg['Servers'][$i]['auth_type'] = 'cookie';

$cfg['Servers'][$i]['auth_type'] = 'config';

「config」に切り替える場合は、必ずユーザーとパスワードを設定してください。


1

次の手順に従って問題を修正してください。

1)mysql> GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapass';

2)mysql -uroot -p=> MySQLに入り、scripts /のコマンドを使用create_table.sqlして、データベース(phpMyAdmin)と次のような9つのテーブルすべてを作成します。

mysql> CREATE DATABASE IF NOT EXISTS `phpmyadmin`
    ->   DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
mysql> USE phpmyadmin;
mysql> CREATE TABLE IF NOT EXISTS `pma_bookmark` (
    ->   `id` int(11) NOT NULL auto_increment,
    ->   `dbase` varchar(255) NOT NULL default '',
    ->   `user` varchar(255) NOT NULL default '',
    ->   `label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL default '',
    ->   `query` text NOT NULL,
    ->   PRIMARY KEY  (`id`)
    -> )
    ->   ENGINE=MyISAM COMMENT='Bookmarks'
    ->   DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

......そして他のテーブルも。

3)mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* to 'pma'@'localhost';

4)MySQLを再起動してWebを開くと、エラーがなくなります。


0

pmadbデータベースの構造を作成する必要があります。scriptsディレクトリには、そのためのcreate_tables.sqlがあります。別の名前を選択した場合は、データベースの名前もファイルにチェックインします。


それは私が最初にしたことです
崩壊者

スクリプトは、config.inc.phpで設定したデータベースを使用しますか?初めてスクリプトを実行したときにphpmyadminデータベースが作成されますが、configにはpmadbがあるため、スクリプトを変更する必要があります。
hdanniel

phpmyadminでテーブルを作成し、config-db.phpで構成しました
The Disintegrator

0

すべてがドキュメントに従って設定されていると確信していても、最終的には機能しません。私はまったく同じ愚かな問題を抱えていた。

ユーザー 'pma'を作成しましたが、 'phpmyadmin'データベースでselect-insert-update-deleteの許可を与えていないことがわかりました。はい、これらのパーマを設定した後、再ログインする必要があります。


0

Ubuntu 8.04 LTS Lucidでリレーション機能を動作させるために行ったことを追加したいだけです。

  • 空のデータベースphpmyadminを作成しました
  • パスシークレットを使用して作成されたユーザーpma
  • 特権を付与する
  • $ zcat /usr/share/doc/phpmyadmin/examples/create_tables_mysql_4_1_2+.sql.gz | mysql -u pma -p phpmyadmin
  • 秘密に入った
  • $ sudo vi /etc/phpmyadmin/config.inc.php
  • コメントなし:

    / *認証タイプ* /

    $ cfg ['Servers'] [$ i] ['auth_type'] = 'http';

    / *サーバーパラメータ* /

    $ cfg ['Servers'] [$ i] ['host'] = 'localhost';

    $ cfg ['Servers'] [$ i] ['connect_type'] = 'tcp';

    // $ cfg ['Servers'] [$ i] ['compress'] = false;

    / *サーバーにmysqliがある場合は選択* /

    // $ cfg ['Servers'] [$ i] ['extension'] = 'mysql';

    / *オプション:高度な機能のユーザー* /

    $ cfg ['Servers'] [$ i] ['controluser'] = 'pma';

    $ cfg ['Servers'] [$ i] ['controlpass'] = 'secret';

    / *オプション:高度なphpMyAdmin機能* /

    $ 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] ['designer_coords'] = 'pma_designer_coords';


0

2010年10月8日金曜日に書かれた文書

何かがつらいときは、ソリューションを文書化する必要があります。

Windows 7 にWAMPをインストールすると、phpMyAdminに次の2つの赤い行が表示されます。

  1. リンクテーブルを操作するための追加機能は無効になっています。理由を確認するには、ここをクリックしてください。

  2. #1045-ユーザー 'root' @ 'localhost'のアクセスが拒否されました(パスワードを使用:NO)

最初のたくさんの赤いテキストを3分で取り除く

以下からHomeのphpMyAdminで、クリックのインポート ]タブをクリックして、[参照]をして、ファイル名]ボックスで、次の場所に貼り付けます。

C:\ wamp \ apps \ phpmyadmin3.2.0.1 \ scripts、「create_tables.sql」を選択して「go」をクリックします。

WAMPメニューからMySQLコンソールを開き、Enterキーを押します。

ログオンしたら、次の2行を貼り付けます。

CREATE USER ‘phpmyadmin’@'localhost’ IDENTIFIED BY ‘pmapass’;
GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO ‘phpmyadmin’@'localhost’;

ワードパッドを開き、[ ドキュメントを開く ]をクリックします。次のテキストを貼り付けて、ファイルを開きます。

C:\wamp\apps\phpmyadmin3.2.0.1\config.inc.php

次に、PHPタグ間のコンテンツを削除し、次のテキストを貼り付けます。

/* Servers configuration */
$i = 0;


/* Server: localhost [1] */

$i++;

$cfg['Servers'][$i]['verbose'] = 'localhost';

$cfg['Servers'][$i]['host'] = 'localhost';

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

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

$cfg['Servers'][$i]['connect_type'] = 'tcp';

$cfg['Servers'][$i]['extension'] = 'mysqli';

$cfg['Servers'][$i]['auth_type'] = 'config';

$cfg['Servers'][$i]['user'] = 'root';

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

$cfg['Servers'][$i]['AllowNoPassword'] = true;

/* User for advanced features */

$cfg['Servers'][$i]['controluser'] = 'pma';

$cfg['Servers'][$i]['controlpass'] = 'pmapass';


/* Advanced phpMyAdmin features */

$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]['designer_coords'] = 'pma_designer_coords';

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

$cfg['Servers'][$i]['controlpass'] = 'pmapass';


/* End of servers configuration */

$cfg['DefaultLang'] = 'en-utf-8';

$cfg['ServerDefault'] = 1;

$cfg['UploadDir'] = '';

$cfg['SaveDir'] = '';

保存をクリックしてください!

ブラウザを閉じて再度開きます。エラーがまだ存在する場合は、[更新]をクリックすると消えます。

赤いテキストの2番目のロットを取り除く

次に、MySQLのセキュリティを設定し、他のエラーを取り除きます。

開いている場合は、phpMyAdminを閉じます。

WAMPメニューからMySQLコンソールを開き、次の2行を貼り付けます。

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('**yourpassword**');FLUSH PRIVILEGES;
SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('**yourpassword**');FLUSH PRIVILEGES;*

ヒットEnter

「config.inc.php」を再度開き、次の行を変更して上記と同じパスワードを有効にします。

$cfg['Servers'][$i]['password'] = '**yourpassword**';

完了です!phpMyAdminを開くと、赤い警告テキストが消えます!

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.