Forum Moderators: coopster
I have been searching the web and searching webmasterworld to figure out how to increase the file size for uploads to My_SQL when importing a file.
I am using EasyPhp1.7 which uses phpmyadmin. I did find some information which seemed detailed online talking about updating the php.ini and my.ini files for the following function:
upload_max_filesize = 100M
for the php.ini and
set-variable = max_allowed_packet=100M
which was originally set to 2M as default.
I updated the files, exited Apache and restarted it. Still nothing when trying to upload a large file.
Here are the files that I have within easyphp:
/php/php.ini-dist
/php/php.ini-recommended
/safe/http-sage
/safe/php-safe
/safe/my-safe
The folder /phpmyadmin does not include any of the file names above.
I spent hours on this and have run out of options. Maybe someone who knows exactly what he/she is doing can shed some light.
I would really appreciate it.
Thanks,
[edited by: JayDev at 9:44 pm (utc) on Sep. 16, 2006]
The file is csv, not SQL. I also tried a SQL file without success.
The only alternative is to go into the file and make chunks of 2M. If you have a file of +100M, do the math!
post_max_size integerSets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize [php.net].
If memory limit is enabled by your configure script, memory_limit [php.net] also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.
When an integer is used, the value is measured in bytes. You may also use shorthand notation as described in this FAQ.
If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty. This can be tracked in various ways, e.g. by passing the $_GET variable to the script processing the data, i.e. <form action="edit.php?processed=1">, and then checking if $_GET['processed'] is set.
Good luck!