You must check that the copy of the database is correct and without errors.
Then go to the .htaccess file and check that there is no link, such as localhost. That is, if in .htacces this appears like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /carpeta/tudomino/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /carpeta/tudominio/index.php [L]
</IfModule>
It should be like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
It is also very important that your wp-config.php file is in the correct way with the domain name, server, user, etc.
Normally that is what fails to export a wordpress to a domain. Also make sure that all the files have been sent correctly by ftp.