#1146 – 表'phpmyadmin.pma_recent'不存在

解决scheme专家…

仅供参考,我使用xampp来使用phpmyadmin。 并且在localhost上创build数据库的过程中发生此错误。 下面是phpmyadmin目录下的config.inc文件的代码:

<?php /* * 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 and info */ $cfg['Servers'][$i]['auth_type'] = 'HTTP'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'password'; $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['AllowNoPassword'] = true; $cfg['Lang'] = ''; /* Bind to the localhost ipv4 address and tcp */ $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; /* User for advanced features */ $cfg['Servers'][$i]['controluser'] = 'pma'; $cfg['Servers'][$i]['controlpass'] = ''; /* 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]['tracking'] = 'pma_tracking'; //$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig'; //$cfg['Servers'][$i]['recent'] = 'pma_recent'; //$cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs'; /* * End of servers configuration */ ?> 

您必须在phpMyAdmin的examples /文件夹中运行create_tables.sql来创build高级function所需的表格。 或者通过在configuration文件中对其进行注释来禁用这些function。

我已经解决了

 sudo dpkg-reconfigure phpmyadmin 

“你必须在phpMyAdmin的examples /文件夹下运行create_tables.sql来创build高级function所需的表格,或者通过在configuration文件中注释来禁用这些function。

 /usr/share/doc/phpmyadmin/examples/ 

只有完成select的答案,这是Ubuntu上的examples /目录的path。

只需使用导入function,并select“create_tables.sql.gz”。

我遇到了同样的问题,但你的答案没有解决它。 但是我发现这个链接 。 我不得不编辑/etc/phpmyadmin/config.inc.php:

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

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

我的问题解决了,希望能帮助别人。

您将在/usr/share/doc/phpmyadmin/examples/ dir中findcreate_tables.sql.gz文件

在这里输入图像说明

提取它并通过pma__更改pma_前缀,反之亦然

在这里输入图像说明

然后导入你的新脚本SQL:

在这里输入图像说明

只要完成答案 – 在Ubuntu / Mint上,你可以运行:

 zcat /usr/share/doc/phpmyadmin/examples/create_tables.sql.gz | mysql 

(当然这个假定你的默认mysql用户是root的开发环境,你不使用密码;在其他情况下使用| mysql -uuser_name -p

在我从他们的网站上下载了phpmyadmin之后,我从examples文件夹中提取了create_tables.sql文件,然后从phpmyadmin的“Import”选项卡导入了它。
它创build数据库'phpmyadmin'和其中的相关表。

这一步可能不需要,因为12桌已经在那里了…
问题似乎是表名中的双下划线。

我编辑了'config.inc.php'并在表格的'pma_'前缀之后加了一个下划线( __ )。

即。

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

成为

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

这为我解决了这个问题。

我剪切由user2237829提出的观点。 create_tables脚本中的表名使用双下划线,而xampp示例中的表名使用单个下划线。

这只是为我工作….

显示的错误信息是:

 “# 1146 – Table 'phpmyadmin.pma_table_uiprefs' doesn't exist“ 

在你的程序文件中,findconfiguration文件config.inc.php phpmyadmin

然后跟踪文件$Cfg ['Servers'] [$ i] ['table_uiprefs'] = 'pma_table_uiprefs';

并将其replace为以下代码: $cfg ['Servers'] [$ i] ['pma__table_uiprefs'] = 'pma__table_uiprefs';

重新启动您的XAMMP并启动本地主机

解决了。

这是Linux Debian上的一个已知的错误 。 我解决了在官方软件包中使用create_tables.sql,并在/etc/phpmyadmin/config.inc.php中使用pma__更改pma_

我也有同样的问题..我尝试在谷歌的一切解决scheme,但仍然错误。

但是,现在我解决了。

我已经解决了让这样的双斜杠:

 //$cfg['Servers'][1]['table_uiprefs'] = 'pma__table_uiprefs'; 

有用!!

我用下面的设置注释掉了这行

 $cfg['Servers'][1]['table_uiprefs'] 

它不是一个真正的优雅的解决scheme,但它符合我的需求。 (只需获得一个基本的PMA运行查询等没有UI定制)。

只有在你不关心UI Prefs的时候才能做到这一点。 如果没有,其他人已经很好地回答了这个问题。

编辑:

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

变成:

 $Cfg ['Servers'] [$ i] ['table_uiprefs'] = 'pma_table_uiprefs'; 

然后https://kamalkaur188.wordpress.com/category/removing-error-1146-table-phpmyadmin-pma_recent-doesnt-exist/为我工作。;

 sudo dpkg-reconfigure phpmyadmin 

在你的unix / linux / Mac控制台中

你也可以在phpMyAdmin的回购中findcreate_tables.sql文件。 只需从phpMyAdmin面板导入。 它应该工作。