簡體   English   中英

MySQL 錯誤 - #1932 - 引擎中不存在表“phpmyadmin.pma 用戶配置”

[英]MySQL error - #1932 - Table 'phpmyadmin.pma user config' doesn't exist in engine

我正在嘗試使用 XAMPP 在 MySQL 中設置我的數據庫。 我是通過 localhost 上的 phpMyAdmin 執行此操作的(Apache 正在運行)。 我唯一的操作是為數據庫輸入一個新的、未使用的名稱,單擊創建並...

發生此錯誤:

Error
SQL query: DocumentationEdit Edit


SELECT MAX(version) FROM `phpmyadmin`.`pma__tracking` WHERE `db_name` = 'stuff_tessss'  AND `table_name` = ''  AND FIND_IN_SET('CREATE DATABASE',tracking) > 0
MySQL said: Documentation

#1932 - 引擎中不存在表“phpmyadmin.pma__tracking”

數據庫顯示在數據庫列表中。 如果你點擊一個,它需要永遠一天的時間才能加載。

我嘗試在堆棧和其他地方研究和實施其他 1932 錯誤解決方案,但無濟於事。

以下是我正在使用的技術的以下版本:

  • OS X El Capitan - 10.11.1
  • 服務器版本:Apache/2.4.16 (Unix)
  • PHP 5.6.15(我不得不使用 -intl 擴展重新安裝,因為 CakePHP 抱怨依賴項)
  • CakePHP 3.0(這需要安裝 Composer 才能從命令行使用 cakePHP,我相信它會運行在 PHP 之外)
  • mySQL Ver 14.14 Distrib 5.7.9,適用於 osx10.11 (x86_64)
  • XAMPP 5.6.14-4

我已經閱讀了各種解決方案,例如在 Linux 中運行它,或使用舊版本的 XAMPP 等。我認為有一個更聰明的人可能知道該解決方案。 我也很難弄清楚在哪里研究。

如果有人能指出我正確的方向,我將不勝感激!

如果有人仍然面臨這個問題,對我來說,在我之前用mysql/backup更改我的mysql/data以解決另一個問題后,它開始發生。

嘗試了很多方法,最后發現解決方法很簡單! 打開PhPMyAdmin(在我的情況下正在加載)后,只需單擊PhPMyAdmin徽標正下方的此圖標(重置會話)。 一鍵解決問題!

對我來說,錯誤代碼是#1142

PhpMyAdmin 重置會話

PhpMyAdmin 重置會話

最后,我找到了解決方案。
當我們展開phpmyadmin 數據庫時,我們可以發現確實存在表'pma__tracking'。

但是 #1932 上的系統錯誤調用 - 引擎中不存在表“phpmyadmin.pma__tracking”。

因此,只需嘗試先刪除舊的 pma__* 數據庫,然后再重新配置它們。

1.刪​​除xampp安裝路徑中的錯誤表,刪除var/mysql/phpmyadmin/中的所有文件,類似pma__bookmark.frm/pma__bookmark.ibd...

2.重新安裝phpmyadmin的sql,位於phpmyadmin/sql/,類似'create_tables.sql',用mysql<create_table.sql等運行。

然后它起作用了。

簡而言之,只需將第 50-69 行 config.inc.php 的內容替換為...

 $cfg['Servers'][$i]['pma__bookmark'] = 'pma__bookmark';
 $cfg['Servers'][$i]['pma__relation'] = 'pma__relation';
 $cfg['Servers'][$i]['pma__table_info'] = 'pma__table_info';
 $cfg['Servers'][$i]['pma__table_coords'] = 'pma__table_coords';
 $cfg['Servers'][$i]['pma__pdf_pages'] = 'pma__pdf_pages';
 $cfg['Servers'][$i]['pma__column_info'] = 'pma__column_info';
 $cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__history';
 $cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__table_uiprefs';
 $cfg['Servers'][$i]['pma__tracking'] = 'pma__tracking';
 $cfg['Servers'][$i]['pma__userconfig'] = 'pma__userconfig';
 $cfg['Servers'][$i]['pma__recent'] = 'pma__recent';
 $cfg['Servers'][$i]['pma__users'] = 'pma__users';
 $cfg['Servers'][$i]['pma__usergroups'] = 'pma__usergroups';
 $cfg['Servers'][$i]['pma__navigationhiding'] = 'pma__navigationhiding';
 $cfg['Servers'][$i]['pma__savedsearches'] = 'pma__savedsearches';
 $cfg['Servers'][$i]['pma__central_columns'] = 'pma__central_columns';
 $cfg['Servers'][$i]['pma__designer_coords'] = 'pma__designer_coords';
 $cfg['Servers'][$i]['pma__designer_settings'] = 'pma__designer_settings';
 $cfg['Servers'][$i]['pma__export_templates'] = 'pma__export_templates';
 $cfg['Servers'][$i]['pma__favorite'] = 'pma__favorite';

我有同樣的錯誤,它發生在將mysql/data文件夾更改為另一個文件夾時。
我只是將mysql/data文件夾中的所有文件夾復制到一個新位置,除了兩個文件。 這些是ib_logfile0ib_logfile1 這些是在啟動 MySQL 服務器時自動創建的。 那對我有用。

這是由於有時會話查詢可能包含無效字符,嘗試單擊 PHPMYADMIN 中突出顯示的圖標,它會解決,因為會話值重置為默認值參見圖片

這就是我解決我的問題的方法

  • 轉到xampp/mysql/data目錄
  • 刪除除數據庫文件夾之外的所有不需要的文件
  • 重新啟動 xampp 服務器並轉到儀表板
  • 單擊 phpmyadmin 圖標下方的清除會話數據圖標

ErrorCode # 1932 在 Ubuntu 14.04 Trusty 上為我工作

$cfg['Servers'][$i]['pma__bookmark'] = 'pma__bookmark';
$cfg['Servers'][$i]['pma__relation'] = 'pma__relation';
$cfg['Servers'][$i]['pma__table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['pma__table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pma__pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['pma__column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__history';
$cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['pma__tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['pma__userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['pma__recent'] = 'pma__recent';
$cfg['Servers'][$i]['pma__users'] = 'pma__users';
$cfg['Servers'][$i]['pma__usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['pma__navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['pma__savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['pma__central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['pma__designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['pma__designer_settings'] = 'pma__designer_settings';   
$cfg['Servers'][$i]['pma__export_templates'] = 'pma__export_templates';
$cfg['Servers'][$i]['pma__favorite'] = 'pma__favorite';

這是我對這個問題的經驗,也許它可以幫助你:

我復制了/data文件夾中的所有文件夾和文件,以便從我的db進行備份。

當我切換到另一台計算機的Xampp ,我開始復制之前從以前的phpmyadmin /data文件夾復制的所有文件夾和文件

所以當我完成時,這個問題發生在我身上。

要解決此問題:

1 -我從phpmyadmin/data文件夾進行了備份, /data是僅復制與要備份的表具有相同名稱的文件夾。

2 -卸載 Xampp。

3 -重新安裝 Xampp。

4 -將步驟 1 中保留的所有文件夾復制到mysql/data文件夾中。 此文件夾只是數據庫表,復制時請注意不要觸及其他文件和文件夾或替換任何內容。

make change in changes in /opt/lampp/phpmyadmin/config.inc.php    

<?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 in the doc/ folder
     * or at <http://docs.phpmyadmin.net/>.
     *
     * @package PhpMyAdmin
     */

    /**
     * This is needed for cookie based authentication to encrypt password in
     * cookie
     */
    $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

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

    /**
     * First server
     */
    $i++;
    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'config';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = '';
    /* Server parameters */
    //$cfg['Servers'][$i]['host'] = 'localhost';
    //$cfg['Servers'][$i]['connect_type'] = 'tcp';
    $cfg['Servers'][$i]['compress'] = false;
    $cfg['Servers'][$i]['AllowNoPassword'] = true;

    /**
     * phpMyAdmin configuration storage settings.
     */

    /* User used to manipulate with storage */
    // $cfg['Servers'][$i]['controlhost'] = '';
    // $cfg['Servers'][$i]['controlport'] = '';



    $cfg['Servers'][1]['pmadb'] = 'phpmyadmin';
    $cfg['Servers'][1]['controluser'] = 'pma';
    $cfg['Servers'][1]['controlpass'] = '';

    $cfg['Servers'][1]['bookmarktable'] = 'pma_bookmark';
    $cfg['Servers'][1]['relation'] = 'pma_relation';
    $cfg['Servers'][1]['userconfig'] = 'pma_userconfig';
    $cfg['Servers'][1]['table_info'] = 'pma_table_info';
    $cfg['Servers'][1]['column_info'] = 'pma_column_info';
    $cfg['Servers'][1]['history'] = 'pma_history';
    $cfg['Servers'][1]['recent'] = 'pma_recent';
    $cfg['Servers'][1]['table_uiprefs'] = 'pma_table_uiprefs';
    $cfg['Servers'][1]['tracking'] = 'pma_tracking';
    $cfg['Servers'][1]['table_coords'] = 'pma_table_coords';
    $cfg['Servers'][1]['pdf_pages'] = 'pma_pdf_pages';
    $cfg['Servers'][1]['designer_coords'] = 'pma_designer_coords';



    // $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';
    /* 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'] = '';

    /**
     * Whether to display icons or text or both icons and text in table row
     * action segment. Value can be either of 'icons', 'text' or 'both'.
     * default = 'both'
     */
    //$cfg['RowActionType'] = 'icons';

    /**
     * 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".
     * Possible values: 25, 50, 100, 250, 500
     * default = 25
     */
    //$cfg['MaxRows'] = 50;

    /**
     * Disallow editing of binary fields
     * valid values are:
     *   false    allow editing
     *   'blob'   allow editing except for BLOB fields
     *   'noblob' disallow 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';

    /**
     * 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;

    /**
     * Whether or not to query the user before sending the error report to
     * the phpMyAdmin team when a JavaScript error occurs
     *
     * Available options
     * ('ask' | 'always' | 'never')
     * default = 'ask'
     */
    //$cfg['SendErrorReports'] = 'always';

    /**
     * You can find more configuration options in the documentation
     * in the doc/ folder or at <http://docs.phpmyadmin.net/>.
     */

在使用 XAMPP 的 Ubuntu 14 中遇到了同樣的問題。 這是我所做的工作..

  1. 如果 mysql 在 xampp 中運行,則停止它
  2. vi /opt/lamp/phpmyadmin/config.inc.php(如果你不是su,請使用sudo)
  3. 代替

    $cfg['Servers'][1]['relation'] = 'pma__relation'; $cfg['Servers'][1]['userconfig'] = 'pma__userconfig'; $cfg['Servers'][1]['table_info'] = 'pma__table_info'; ...

    $cfg['Servers'][1]['pma__relation'] = 'pma__relation'; $cfg['Servers'][1]['pma__userconfig'] = 'pma__userconfig'; $cfg['Servers'][1]['pma__table_info'] = 'pma__table_info'; ...

    基本上在左側添加 pma__ 前綴,類似於右側。

  4. 運行 mysql 並訪問 localhost/phpmyadmin 並單擊一個數據庫以檢查它是否有效。

希望這可以幫助。

我在 OSX 中遇到了同樣的問題。 我試圖取代像
$cfg['Servers'][$i]['usergroups'] to $cfg['Servers'][$i]['pma__usergroups'] ...

它在 safari 中有效,但在 chrome 中仍然失敗。
但是safari中所謂的'work'可以得到這樣的信息,即已修改的功能根本無效。
但是,“工作”意味着我可以訪問左側列出的數據庫。
我認為這個問題可能是 XAMPP 新版本中的一個錯誤,因為 google 中的 #1932 問題是新的並且蓬勃發展。
您可以嘗試使用舊版本的 XAMPP,直到問題得到解決。
http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.12/
希望它可以幫助你。

您需要下載以前的版本,xampp 實際上在其最新版本中存在錯誤。

祝你好運!

如果上述所有解決方案都不起作用,請嘗試:

添加 $i = 1; /* 服務器配置后 */

代替 phpmyadmin config.inc.php 文件中的 $i = 0

在本地 Windows 服務器上運行 XAMPP,我的 mysql 數據文件不在通常的安裝路徑 (C:\\Xampp) 下,而是在另一個磁盤上。

所以現在我有了帶有雙 __ 的 phpmyadmin 表,比如 pma__table... 和 $i = 1;

我遇到了類似的問題,並將地址從localhost更改為127.0.0.1,一切開始正常運行

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM