I used localhost for new client website design and development as it is fast and easy. Once the development is done I upload files and database in the live site. Here I will show you how easy it is to transfer your ready localhost website to live site.
There is thirdparty tools which can do the same job, like Akeeba Backup and BackupBuddy. But, here I will show you how to do manually as it is a simple process.
1. Export localhost database
Go to your localhost ‘phpmyadmin‘ and select the database, click Export > Go. This is create .sql file
2. FTP upload files.
Upload all your localhost WordPress file to your live site using any FTP software.
3. Create new database in your live site.
Go to you cPanel and create new database and username.
4. Import localhost database in your live site database.
In your cPanel go to ‘phpMyAdmin’ and import your localhost database in your newly created database.
5. Edit wp-config.php file.
Open your localhost ‘wp-config.php’ file using your favorite editor and edit below database details.
6. Edit site URL at live site database
In your live site cPanel go to ‘phpMyAdmin‘ and look for ‘wp_options‘
Click ‘wp_options‘ and change ‘siteurl‘ and ‘home‘ to your live site URL. You can click Edit icon to edit.