简体   繁体   中英

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. 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....

Does anyone knows how to fix it?

Thank you!

I think you should use mysqldump instead, when exporting data. 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. I fixed it sometimes by increasing 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. You get speed and more control over it as you are not dependent upon GUI based systems.

  1. Use mysqldump in terminal to export data: 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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