The MySQL Connection could not be established., before it was joomla but i have change it into worpress

Check that you have assigned the user/pass to the database via your cPanel. And that those credentials match what WordPress expects. Usually, the WP install process will do this for you. (I assume that you created a new WP installation, and are not trying to re-use an existing database.)

Also, you should obfuscate the URL in your screenshot…you don’t want to give out that confidential info to hackers who might be lurking, even though that possibility is remote.

Your screenshot also shows (I think) your database credentials. Again, not good. For future questions, just copy the actual error message, watching out for PII (Personally Identifiable Information; in this case: credentials, URLs, and other stuff).