Hi, I have a VPS that currently allow uploading 2MB max sql file to MySQL. Because I'm trying to import a 40MB-sql file into my database, I am wondering how to make MySQL Max upload size bigger? I know that i must find php.ini file and Edit variables: memory_limit post_max_size How to do that?
PHP specifies its own max upload size in PHP.ini. Have you taken a look in there to see what your PHP upload limit is? Head over to the root of your server and see where PHP is installed. Then look for PHP.ini Or, do you have cPanel or another web server management console?
You can set the file size in the php.ini file by defaults its 2mb you can change it as per your need and when you are on the server you can even modify it in .htaccess file
It depends on the settings in php file, i would say you can set the file size in the php.ini file so that bigger file can be uploaded using php
Use an htaccess file to set it. You can also set it in a php file using ini_set but some web hosts block this function as it can be a major security risk.