本文介绍了phpMyAdmin 中无法以 SQL 格式导出表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从 phpMyAdmin 导出我的 SQL 表,但在我的服务器中我无法选择 SQL 格式,因为它不存在.
I want to export my SQL table from phpMyAdmin, but in my server I cannot choose SQL format because it does not exist.
我也无法导出整个 SQL 文件.单击开始"后,我的浏览器显示错误.
I also can't export the total SQL file. After I click Go, my browser shows an error.
我该如何解决这个问题?
How I can fix this?
推荐答案
他们现在确实有一个修复:
They do have a fix in place now:
请按照以下步骤操作:
- 通过 SSH 连接到服务器.(我建议先保存原始文件以防万一)
- 编辑文件
/usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin/libraries/classes/Display/Export.php
.
!注意:对于 Windows,它将是 %plesk_dir%admin\htdocs\domains\databases\phpMyAdmin\libraries\classes\Display\Export.php
.
!Note: for Windows, it will be %plesk_dir%admin\htdocs\domains\databases\phpMyAdmin\libraries\classes\Display\Export.php
.
- Find line
/* Scan for plugins */
(围绕第 662 行) - 在该行上方添加以下内容:
// Export a single table
if (isset($_GET['single_table'])) {
$GLOBALS['single_table'] = $_GET['single_table'];
}
- 保存文件.
更多参考此处.
这篇关于phpMyAdmin 中无法以 SQL 格式导出表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!