Drupal website migration from Prod env to Dev env - drupal

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.

Related

How to create a Drupal website using another Drupal backup?

I have a Drupal project running on a server and I want to work on an exact copy of it, with the same content types and the same data in the database, etc., on my own computer so that I can do a troubleshooting and debugging sessions for errors etc. How can I do that?
I tried before to get a backup of the project database and used it to make a database, then I tried to install Drupal through the wizard, and at the next for the database through the wizard, I typed the same name as the database that I created using the backup files, but the wizard gave me the error that the database already exists and the installation did not complete.
Install drupal locally as usual without your DB backup, use the same database name and passwords to make it easier.
Once you have a basic running drupal site, import your backup DB overwriting the DB of the newly installed site.
Copy the files folder from your live site to your local site.

existing umbraco cms set up in local server

I am completely new with the umbraco CMS and one of my client want to make some changes on his umbraco CMS web site. So i have downloaded the umbraco CMS projects files and database from the server and i need to configure it on my local server. I am using windows 10 OS. I can install a fresh umbraco cms in the local server. But When i try to run the existing in local server, its asking me for install the fresh umbraco CMS.Can anyone help me on sort out this issue?
Note : I don't have changed the any configurations on the files. Just simply running the project with Microsoft WebMatrix app. Please help me with the database and other configuration settings also.
Aby help will be really appreciated...
It sounds like the Umbraco installation is assuming it is a new installation and then creates a new database for you.
You need to download the website files directly from the server and place those in a folder which can be served by a webserver on your local machine. Then you need to get a backup of the database on the server and restore this on a SQL server on your local machine.
When this is done, you need to make sure the connectionstring in the web.config of the site is set up correct to match where you have restored the database on your local SQL server. Search for umbracoDbDsn and make sure the server name, credentials and database name is correct.
When this is done, you should be able to start up the site and hopefully it will run just as it did on the server.

How to skip nopcommerce installation?

I have deployed my project on the server and also exported the database on the server.
Now I would like to skip the installation. How is it possible?
I tried to put the 'Settings.txt' file in App_Data and also the 'InstalledPlugins.txt', but it didn't help.
'Settings.txt' needs to be updated with new SQL Database in your PROD server. Just copying over will not help. If you just copy over, then NopCommerce from PROD will look for Database in your local or dev PC which is not accessible (in most cases)
'Settings.txt' stores db connection as ADO.Net connection string. so you can edit easily.

deploying wabapps (e.g. moodle) on heroku

What is the proper way to deploy webapps on Heroku? I'm installing Moodle, but the same procedure should apply to e.g. Drupal or Wordpress. What I hace done is to unzip Moodle locally, then uploaded it using git to Heroku. When I then visit my site I get the option to install it and select the database, which works fine. The problem is that the install procedure saves information in the filesystem on the server, which gets overwritten next time I deploy my app. So what is the proper way of doing this?
You have to pre-configure your app with all of the database settings before you deploy to Heroku. So either do a fake "install" on your local environment, or manually edit your php config files.
As you've discovered, Heroku's filesystem is not persistent: https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem.

Setting up Orchard development workspace

I'm just learning orchard CMS, and have some questions:
How do I setup development environment for the team? should I use source code of orchard itself (I don't want that) or is there a way to use Orchard in compiled state?
I would prefer each developer to have its own local copy of DB, won't it make troubles for the team when they get sources and need to go in admin mode and manually execute updates on modules?
For development you should definitely set up full source enlistment. Using the compiled, deployment package (as can be downloaded from Codeplex or via WebMatrix) will drive you in lots of problems.
Orchard can run on either "normal" SQL Server or SQL Server Compact (single-file) databases.
What do you mean by a "local copy of the DB"? Each developer can test his instance using local SQL Server CE database - it's how I usually do that when working on custom modules.
If you have some preconfigured database you'd want your developers to use (because eg. it contains some sample data, themes setup and such) - each developer can copy the database from the server to his own, local SQL Server CE-based database. Migration can be easily done from Visual Studio, SSMS or WebMatrix.

Resources