Step#01
Export your database file from Mysql/PhpMyAdmin
Step#02
Open .sql file name With Notepad Find and Replace all url
that conatin https://localhost/yoursite with
https:// yoursite.com and than save it
step#03
select all site folder and upload vai an Ftp program
e.g ( Filezila ) to your destignation server
step#04
go to yoursite.com/phpMyadmin and connect to your database
choose import and import file that you have Export from
localhost like xyz.sql file
Step#05
now open wp-config.php file from u r wordpress folder in root
directory than change following credentials
$dbname=””;
$db_user=””;
$db_password =””;
and than save it
step#06
log on to Your website now its Ready to start
for e.g https://Www.mysite.com