简体   繁体   English

phpmyadmin 导出表时“处理请求出错” - 错误代码 500

[英]Phpmyadmin "Error in processing request" when export table - Error code 500

I'm trying to use PhpMyAdmin v. 4.5.3.1 to access a DB on a localhost and export a table but it is not working.我正在尝试使用 PhpMyAdmin v. 4.5.3.1 访问本地主机上的数据库并导出表,但它不起作用。 I can access the DB, insert, search, etc. but when I click on "Export" tab it gives me this message:我可以访问数据库、插入、搜索等,但是当我单击“导出”选项卡时,它给了我以下消息:

在此处输入图片说明

I don't have this issue with PhpMyAdmin 4.2.6 using the same WAMP....我在使用相同 WAMP 的 PhpMyAdmin 4.2.6 中没有这个问题....

Does anyone knows how to fix it?有谁知道如何解决它?

Thank you!谢谢!

I think you should use mysqldump instead, when exporting data.我认为您应该在导出数据时使用 mysqldump。 From the command line:从命令行:

mysqldump -uMYSQL-USER -h server -pMYSQL-USER database_name > /path-to-export

Or from a script:或者从脚本:

$command = "mysqldump -uMYSQL-USER -h server -pMYSQL-USER database_name > /path-to-export/file.sql";
exec($command, $output, $return_var);

This can easily be automated.这很容易实现自动化。

You could fix this error by increasing memory limit to your requirement and restart httpd/apache service.您可以通过增加内存限制并重新启动 httpd/apache 服务来修复此错误。 I fixed it sometimes by increasing memory_limit.我有时通过增加 memory_limit 来修复它。 But now i prefer to use terminal commands only to handle it.但现在我更喜欢使用终端命令来处理它。 Its better to always get habitual using terminal commands for doing such big operations in mysql.最好总是习惯使用终端命令在 mysql 中执行如此大的操作。 You get speed and more control over it as you are not dependent upon GUI based systems.由于您不依赖于基于 GUI 的系统,因此您可以获得速度和更多的控制权。

  1. Use mysqldump in terminal to export data: mysqldump -u root -p db_name > /home/dump.sql在终端使用mysqldump导出数据:mysqldump -u root -p db_name > /home/dump.sql

  2. Use mysqldump in terminal to export only schema without data: mysqldump -u root -p db_name --no-data > /home/dump.sql在终端中使用 mysqldump 只导出没有数据的模式:mysqldump -u root -p db_name --no-data > /home/dump.sql

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM