Server database problem

I believe Rarst is right. It sounds like you need to configure the wp-config.php file for the new database. Just go to the cpanel or other control panel of your hosting service, and use the address they use for the host address. If the database is on the same server as the web site, localhost is used.

I am not sure how you moved you website. I assume that it is a WordPress site, and it is not difficult to move. When I did this, I made a new installation of WordPress on the new hosting service. This included installing WordPress with a new database.

Then, I went to the old site WordPress dashboard, found the Export menu, and saved the resulting XML file. This file contains all the database info for your site.

At the new site, I simply went to the new site dashboard Import menu and imported the file from the old site. The new database system then had the correct data from the old site. There were a few issues on the new site, mainly dealing with cosmetic things.

As a matter of fact we should all keep a current backup of our WordPress database, and there is a plugin for that.