there seems to be a small issue I am experiencing. I am trying to migrate a drupal website existing on a production environment onto my development environment.
I did an sql dump of the databases on the prod environment, and installed the same version of Drupal on my local, changed the base url, and took note of the database it was connected to. However, while running the install.php, I mention the exact same db and the credentials.
Drupal is unable to recognize this database. Also, isn’t setting up a new Drupal installation going to overwrite the existing database which is the scenario given that I am downloading an existing website and setting it up locally.
Anyone have any leads on this?
Thanks!
First, install Drupal in the development environment, which will let it correctly configure the values in the config file. Then drop all tables in the development database while keeping the database itself intact, including its permissions. Import the database contents of the production environment into the development database.