Mark, have you checked by login to your database directly using same login details which you have used in wp-config.php file? May be there is permission problem with localhost. Use phpmyadmin and login.
Check your .htaccess file with server host. There must be a rewrite rule which is not allowing to sitemap url