You should not need to run the install or upgrade script to fix a existing install.
I understand you are using it to test the connectrion just do not proceed past that point.
The top few lines of the config.inc.php file have the database name
database user name and database user password.
If it were me I would double check those settings in your cpanel.
Where you may need to reset the user password since you can't see the existing one.
then edit the config.inc.php file to match those credentials.

You need to figure out where something changed such as the host may have changed the prefix to your site name which is part of the names used in the config file..

One other thing is if you add a new database user make sure they have global privileges.

Last edited by Ruben; 04/24/2022 2:45 PM. Reason: Added comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers