database error WordPress move from one hosting to other

The credentials for your database are located in the wp-config.php file. Make sure those settings are correct.

In particular, non-ASCII characters may be causing a problem. Or an extra space in any value (especially the password).

Look at the user/pass/dbname in your host also. An extra space at the end of the password in wp-config or on the host, for example, can cause authentication errors.

I’d reset the user/pass via your hosting cPanel, making sure no extra spaces or non-ascii characters in those fields. Then make the wp-config.php file match exactly.