Sounds like one of your four database settings is incorrect. Either the host, dbname, password or dbuser must be wrong. Is the database on another host? Are you sure the connection details are correct? Are you using the same database for your wordpress installation? You can check the settings in wp-config.php and see if they’re the same.
Also, those are warnings, which are not good, but the connection was still made to the database.