New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting database with lot of tables #13008
Comments
Where exactly would you see the pagination appear on the Export tab? Can you take a screenshot and draw on it? :) |
Can you clarify if I am understanding this right?
|
After upgrading to 4.7.0, I experence the same problem.
but it is intermittent. It may be related to an authentication issue we have since the upgrade, which constantly throws me out (sometimes directly, sometimes are a few clicks). We use cookie auth, with the same config for at least 3 years. Previous version running was 4.0.x. We have 3 replicated mariadb instances behind a load balancer, but it doesn't matter which IP I pick as target (all 4 are configured as servers). edit: if I increase the memory to 256Mb, the export page does load after quite some time looking at the "Loading" popup, and then displays the page with a second popup, which says " I did some digging, this seems to be caused by the the "Rename exported databases/tables/columns" feature, which in a hidden modal lists all columns in all tables in all database as a text input field, and we clearly have more than 1000 columns over all databases/tables. All these input fields are part of the same main form on the export page. This feature is clearly unusable in setups with a large number of databases/tables/columns... |
@jublo, @Achilles-96 in response to your comments from Feb 15th & March 11th: As soon as the export tab is clicked, the following pink box error appears: And the same error message is printed in the logs: This leads us to believe the error is due to php getting information about all the tables at once. |
@kasunchathuranga correct, see my edit above. |
More debugging confirmed it is display_export.lib.php, PMA_getHtmlForAliasModalDialog() that is causing the problem. For now I've worked around this issue by disabling the entire div by adding this to the top of the function: return ""; so I have at least a working export again. |
@nijel please change this from "enhancement" to "bug". |
Any thoughts from the phpMyAdmin dev community about the proper fix for this? Is it pagination or something else? Is there any negative impact of @WanWizard 's workaround besides losing the ability to rename tables and columns as part of the export? |
IMHO best approach would be to paginate the results in case there are too many and add AJAX based search, so that it's possible to quickly find table user is looking for. |
In a database with many, many tables - just loading the Export tab creates an error. This is a similar request to #12153 which is for filtering the export tables. My enhancement request is for pagination of the tables so as to avoid memory errors.
Steps to reproduce
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/phpMyAdmin/htdocs/phpMyAdmin/libraries/dbi/DBIMysqli.php on line 299
Also observed this error in a database with ~1100 tables & views:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4402939 bytes) in /var/www/phpMyAdmin/htdocs/phpMyAdmin/libraries/display_export.lib.php on line 1014
Expected behaviour
View a list of tables to export with no memory error
Actual behaviour
php runs out of memory using default php.ini with 128 MB memory limit
phpMyAdmin version:
4.6.6
The text was updated successfully, but these errors were encountered: