I'm getting a HTTP ERROR 500 when attempting to export from phpmyadmin. It only occurs after hitting the 'export' button after setting all the export settings. I'm able to do a mysqlbackup just fine, but I get an error on export.php.

I'm not really sure where to start with this, there are no errors in any log that I checked. I've uninstalled, purged and reinstalled phpmyadmin with no change. Any help would be appreciated!

I'm running php7.0 on ubuntu 14.04.


Go to /usr/share/phpmyadmin/export.php

On line 864 : change break 2; by break;

Source : github

Worked for me ;)

  • 2
    Such a simple solution for a problem that has been driving me nuts for months! Works great, thanks! Jul 2 '17 at 15:44
  • You're welcome! Happy to help ;)
    – Dev
    Jul 2 '17 at 16:17
  • Working for me too :) Dec 4 '17 at 5:54
  • 1
    omg finally!!! after one year i found the sslution
    – Francesco
    Jan 11 '18 at 21:04
  • 1
    @IvijanStefanStipić well, I just looked at their code on github and can't find any occurence of "break 2" in export.php. The file is also shorter so I guess the team fixed this issue a long time ago, but the ppa repo probably didn't get updated since then on ubuntu 14. No problem on ubuntu 16 by installing it using default ppa. You can trust versions 4.5.4 and above.
    – Dev
    Jun 6 '18 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.