Question

phpMyAdmin File Limit

I’m trying to import a 151 MB database into phpMyAdmin and am getting the error “You probably tried to upload a file that is too large. Please refer to documentation for a workaround for this limit.”

I’ve already edited php.ini with values of upload_max_filesize, memory_limit and post_max_size that more than accommodate this file. Is there anything else I can do to troubleshoot?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
May 21, 2020
Accepted Answer

Hello, @alexanderCrab

Could you please confirm that the upload_max_filesize change has taken effect? What you can do is to create an info.php file and then check the value. You can create a file named info.php (the name doesn’t really matter) and put the following content in the file:

<?php

phpinfo();

Then all you need to do is to access the file in your browser and you’ll see all the information about the php extensions and values as well.

I will recommend you to set the following limits in the php.ini file

max_input_time = 259200
memory_limit = 512M // or more if needed
upload_max_filesize = 512M
post_max_size = 512M

Keep in mind that you might need to restart your web server - Apache or Nginx in order the changes to take effect.

Let me know how it goes.

Regards, Alex

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.