There is a plugin named wp migrate db.
Install that plugin and you can find that plugin under the tools menu.
By using that plugin you can migrate the db for your new webhost.
Once you get your db using that plugin, simply create a database and import the migrtaed db.
Then upload all your files as zip and extract at the webhost location.
Then only thing you need to do is, change the dbusername, password, database and host in the file wp-config in the root folder.
If you are using this method, there is no need to install wordpress again like you did in your localhost and you will get the entire contents as well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…