Make sure you change both *”post_max_size”* and *”upload_max_filesize”* in your “php.ini” (which is located where your “php.exe” is or C:xamppphp).
The following example allows you to upload and import 128MB sql files:
Restart Apache and you’re all done !!
You have a working wordpress website on your localhost server and when you need to migrate or copy the same wordpress website to your live server, what should you do ?
To install a fresh copy of wordpress and put all the data again and again is very frustrating.
I think almost all the wordpress developers face this problem. I have a solution to this problem.
There is a very simple way to get rid of this problem.
You just need to download the SQL file from your database and make a copy of your wordpress website folder.
Now open the wp-config.php which is present at the root directory and write the database details you have for your live server.
Now open the SQL file in the editor (I prefer Adobe Dreamweaver), and find http://localhost/yourfoldername/ and replace this with http://www.mywebsite.com/.
You are all done. Just upload the folder through any FTP client and upload the database and enjoy your website fully functional like your local version.