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?
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.