【问题标题】:MySQL error - #1932 - Table 'phpmyadmin.pma user config' doesn't exist in engineMySQL 错误 - #1932 - 表 'phpmyadmin.pma 用户配置' 在引擎中不存在
【发布时间】:2016-02-23 16:50:10
【问题描述】:

我正在尝试使用 XAMPP 在 MySQL 中设置我的数据库。我通过本地主机上的 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 apache phpmyadmin xampp


【解决方案1】:
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/>.
     */

【讨论】:

  • 我完全按照您提到的方式修改了该配置文件,我通过取消注释这些行来完成它(它们已被注释并且已经从原始设置中存在)。我重新启动了 Apache,不确定这是否重要,但仍然出现此错误:Error SQL query: DocumentationEdit Edit SELECT MAX(version) FROM phpmyadmin.pma__tracking` WHERE db_name = 'another_new' AND table_name = '' AND FIND_IN_SET('CREATE DATABASE',tracking) > 0 MySQL 说:文档 #1932 - 表 'phpmyadmin.pma__tracking' 在引擎中不存在`
【解决方案2】:

在使用 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 并单击 db 以检查它是否有效。

希望这会有所帮助。

【讨论】:

  • 我添加了这些,我也添加了 pma__ 到“跟踪”键。老实说,我已经放弃了。我正在使用 Sequel Pro gui,它运行顺畅。我正要开始通过命令行做所有事情,直到遇到sequel pro。感谢您的帮助!
【解决方案3】:

简而言之,只需将第 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';

【讨论】:

  • 你拯救了我的一天!! +1
  • 对我不起作用!它允许我选择数据库,但是当我尝试选择数据库中的表时出现错误 #1932。它说它不存在。另外,我认为$cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__history'; 应该改为$cfg['Servers'][$i]['pma__history'] = 'pma__history';,不是吗?
【解决方案4】:

我在 OSX 中也遇到过同样的问题。 我尝试替换类似
$cfg['Servers'][$i]['usergroups'] to $cfg['Servers'][$i]['pma__usergroups'] ...

它在 safari 中有效,但在 chrome 中仍然失败。
但是 safari 中所谓的“工作”会得到这样的信息,即已修改的功能根本不生效。
但是,“工作”意味着我可以访问左侧列出的数据库。
我认为这个问题可能是新版本 XAMPP 中的一个错误,因为 google 中的 #1932 问题是新的并且蓬勃发展。
在错误解决之前,您可以尝试使用旧版本的 XAMPP。
http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.12/
希望对你有帮助。

【讨论】:

    【解决方案5】:

    终于找到了解决办法。
    当我们扩展 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
    然后它工作。

    【讨论】:

    • 能否提供更多细节?我是一个新手,我面临同样的问题(stackoverflow.com/questions/33964892/…)!但是,我真的需要保留我的数据!
    • 这就是这个问题的解决方案!
    • 谁能更详细地解释这里的第 2 步?如何使用 mysql
    • @mike_freegan 在您的 xampp 堆栈中的某处有一个名为 create_table.sql 的文件,找到它,复制其内容并在 phpmyadmin 的 SQL 选项卡中运行它。我的没有立即工作,因为我需要从我之前移动的数据文件夹中删除文件夹 phpmyadmin。
    【解决方案6】:

    错误代码 #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';
    

    【讨论】:

      【解决方案7】:

      你需要download之前的版本,xampp实际上在最新版本中存在bug。

      祝你好运!

      【讨论】:

        【解决方案8】:

        如果上述所有解决方案都不起作用,请尝试:

        加$i = 1;在 /* 服务器配置之后 */

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

        在本地windows服务器上运行XAMPP,我的mysql数据文件不在通常的安装路径(C:\Xampp)下,而是在另一个磁盘上。

        所以现在我有了带有双 __ 的 phpmyadmin 表,例如 pma__table... 和 $i = 1;

        【讨论】:

          【解决方案9】:

          我遇到了同样的错误,它是在将 mysql/data 文件夹更改为另一个文件夹时发生的。
          我刚刚将mysql/data 文件夹中的所有文件夹复制到一个新位置,两个文件除外。这些是ib_logfile0ib_logfile1;这些是在启动 MySQL 服务器时自动创建的。 这对我有用。

          【讨论】:

            【解决方案10】:

            这是我对这个问题的经验,也许它可以帮助你:

            我复制了/data 文件夹中的所有文件夹和文件,以便从我的db 进行备份。

            当我切换到另一台计算机的 Xampp 并开始复制之前从以前的 phpmyadmin /data 文件夹复制的所有文件夹和文件

            所以当我完成后,这个问题发生在我身上。

            解决这个问题:

            1 - 我从phpmyadmin/data 文件夹中进行了备份,方法是仅复制与我要备份的表同名的文件夹。

            2 - 卸载 Xampp。

            3 - 重新安装 Xampp。

            4 - 复制 所有文件夹 在步骤 1 中保存在 mysql/data 文件夹中。此文件夹只是数据库表,请注意不要触摸另一个文件和文件夹或在复制时替换任何内容。

            【讨论】:

              【解决方案11】:

              这是由于有时会话查询可能包含无效字符,请尝试单击 PHPMYADMIN 中突出显示的图标,它会得到解决,因为会话值已重置为默认值 See Image

              【讨论】:

              • 这个简单的技巧非常适合我。谢谢大佬!
              【解决方案12】:

              这就是我解决问题的方法

              • 转到xampp/mysql/data目录
              • 删除除数据库文件夹外的所有不需要的文件
              • 重新启动 xampp 服务器并转到仪表板
              • 单击 phpmyadmin 图标下方的清除会话数据图标

              【讨论】:

                【解决方案13】:

                如果有人仍然面临这个问题,对我来说,它是在我之前将我的 mysql/data 更改为 mysql/backup 以解决另一个问题之后开始发生的。

                我尝试了很多方法,最后发现解决方法很简单!只需在 PhPMyAdmin 徽标下方打开 PhPMyAdmin(在我的情况下正在加载)后单击此图标(重置会话)。一键解决问题!

                对我来说,错误代码是 #1142

                PhpMyAdmin 重置会话

                【讨论】:

                • 嗯,它也适用于我。我丢了一些桌子然后发生了这种情况
                猜你喜欢
                • 2022-08-24
                • 2020-05-09
                • 2017-12-07
                • 2016-12-10
                • 2017-05-25
                • 1970-01-01
                • 1970-01-01
                • 2016-03-10
                • 2016-11-23
                相关资源
                最近更新 更多