I want to import over 800MB size sql file to MySQL
database in localhost XAMPP/phpmyadmin
. But phpmyadmin UI doesn't allow to import more than 2MB.
What are the possible ways to do that such as any SQL
query to import .sql
file ?
Thank you in advance
I found that I can change the following values to php.ini file in xampp
post_max_size = 2M
max_execution_time = 30
max_input_time = 60
upload_max_filesize = 2M
What is the bect time for execution and input in order to not have exceptions and upload my file successfully?
Because it gives me something like this (this happens when I try to upload the zip file from sql file):
Fatal error: Out of memory (allocated 728760320) (tried to allocate 723280395 bytes) in C:\xampp2\phpMyAdmin\libraries\zip_extension.lib.php on line 55
When I try to upload the pure sql file it gives me this:
Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp2\phpMyAdmin\libraries\dbi\DBIMysqli.class.php on line 290
I have set in php.ini file the following:
post_max_size=1800M
max_execution_time=10000000
max_input_time=10000000
upload_max_filesize=900M