Hello,
I am cloning a WordPress site to create a staging environment for a client.
However, it appears that the cloning process does not automatically update the wp-config.php file with the new database credentials for the staging site.
As a result, the cloned site still points to the production database.
If the staging site is hosted on the same server, it attempts to connect to the production database (which often results in an access denied error due to permission restrictions). However, if it is hosted on a different server, it simply triggers a 'database connection error' because the credentials do not match the new environment.
Is this a bug in the cloning process, or should these credentials be updated manually?