Hi Everyone,
Recently, I copied an existing Wordpress website; including its underlying database.
I then created a new DNS-domein, copied the website content to this httpdocs-root, created a new database and imported the existing database.
The next step was adjusting the Wordpress-config file to use the newly imported database.
In addition, modified the database table where the URL is stored.
However - when trying to access this "new" website, it returns " Error establishing a database connection".
When I try accessing the same database via a small php-script (see below), it returns "connected succesfully".
The source-website is working as expected.
What am I overlooking here?
=====