Usually on most servers, it is localhost, since the database server resides on the same server as the hosting itself, so it connects to itself to reach the database. So use localhost, unless your host directs you to use a different address for database.
For that error, try reuploading the files. Seems as though maybe it didn't upload properly, or may have partially corrupted a file