This is a weird thing I haven't seen as I'm usually working on a live server. On my MAMP, when I try and export the database, it just opens the file within phpmyadmin-like as a text document. I tried to copy the file to a text document with and gave it a .sql at the end, but that gave me an error when trying to import to the live server. When I try an export from the live server, I get the save location dialog box popping up as normal. What am I missing? Thanks!
8 Answers
It's hard to tell what's wrong with little information. What version of phpMyAdmin are you using?
However when you try to export the database, in the export page you'll have a choice between 'Quick' and 'Custom'. Chose custom and under the 'Output' section you'll see two choices.
- Save output to a file
- View output as text
Generally 'Save output to a file' is selected by default, but i'm not sure whether something has gone wrong and the other option is selected in your case .

- 2,204
- 1
- 15
- 20
-
1Had the same issue on MAMP, a text file was displayed to me, followed this answer and now in quick mode, I can download the `.sql` file. – Mostafa Arian Nejad Mar 16 '20 at 09:50
inside of phpmyadmin you'll need to navigate to:
Setting >> Export >> Export Defaults
Click on the radio button to "Save as file" (this will be under the Custom header)
Click "Save"
see picture here:

- 1,679
- 1
- 13
- 9
-
1This is the right answer! That solved my problem. After updating Mamp I couldn't save on file anymore with the quick export (by default I mean). – Andycap Sep 25 '13 at 08:39
Solved mine by changing Export setting
From "Setting" tab check in "Export" section, you'd find "Save as file" and "Save to browser's storage" radio buttons, choose "Save as file" and click "Go". Restart your WAMP OR MAMP and try to export, it should download this time.

- 171
- 6
Select the database you wish to export and:
click "Custom - display all possible options" under 'export method'.
Click "Save output to a file" under 'Output'.
Click on 'Go'.

- 7,430
- 11
- 40
- 53

- 9
- 1
My phpMyAdmin settings were already set to export a file; however, I had to change the phpMyAdmin config file /path/to/phpMyAdmin/config.inc.php
at approximately line 256:
$cfg['Export']['asfile'] = TRUE;
Note: Check your "format-specific options" when exporting.
Example: Columns enclosed with: you may have to replace "
with quote marks ("
)

- 20,096
- 2
- 45
- 71

- 9
- 4
I had the same problem on a Drupal database. Check the size of some tables. I had to empty some cache tables. That worked.

- 1
- 1
-
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient [reputation](http://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](http://stackoverflow.com/help/privileges/comment). – Jeroen Mar 29 '14 at 15:02
-
@Jeroen - it may not be the most detailed answer, but "Check the size of some tables. I had to empty some cache tables" is at least an answer. – iandotkelly Mar 29 '14 at 15:21
- Click on server>Appearance settings>More settings>Export
- Make sure your export method is set to Quick
- Check the 'Save as file' then 'Apply' at bottom.

- 47,830
- 31
- 106
- 135