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.
Related
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.
i installed a word press blog in Microsoft azure using the image from new ->website >gallery
it was easy but now i want to take a backup of my .sql file of word press i cant see any phpadmin access and the database is automatically created when i used it install from gallery and also when i navigate to sql database in portal i cant find any databases and my website is running fine how is it so ?
how to access the database and download the backup ?
thanks for your time
I am not that familiar with WordPress, but my experience tells me that this would be your best a reliable choice to back up your WordPress database.
As for phpMyAdmin and other stuff - you can always connect to your Azure Website using FTP. You can do whatever you want with the content, once connected with the FTP client of your choice (understand - you can upload your version of phpmyadmin and have it there running for you).
You can always access MySQL database using the connection string provided on your website's dashboard in Azure management ("View connection strings"). Then you can use program like MySQL Workbench (or perhaps even phpMyAdmin on your local machine) to access the database.
Backing up from MySQL workbench is quick and easy, see e.g.Making a MySQL database backup with MySQL Workbench. Remember to also back up files.
Last week I created a ASP.NET Web Application project on my machine. It was connecting to a SQL server database file for testing. The database was created in the server explorer part of visual studio and it created a database file with all of the information within it. I was using windows authentication to connect to the database.
Recently my computer has been migrated onto a new netowrk within my company. Now I no longer have access to the database file. The error I am getting is Login failed for user "DOMAIN/USER". I guess this is because the Domain has changed and my computer and the database server are in different domains. However I do not have access to the old domain to add a new login or user with priveladges to access the database.
How can i get arround this?
You cannot get around this, unless an admin is willing to give you a copy of the files from the old drive.
So, you must re-create your database.
Fortunately, if you took proper precautions, this will be easy.
Option 1: If your database is under source control, simply checkout the latest good version of the database.
Option 2: Load the latest backup of the database.
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.
I have made my database in SQLExpress and its a master database . I would like to create a CD for my project so need the database file. I am not able to find that file please suggest a solution
thanks!
Your database files would be in the App_Data folder by default if you are using SQL-Express provided with Visual Studio.
You can generate an SQL script of your database which can be used to re-create it in different db server by running the script again. For this right-click on the database in the Server Explorer and select Publish to Provider.
You'll need the .mdf and .ldf in the SQL Server installation directory, but if you've created everything in the master database, I'd recommend creating a different database and moving everything there instead. The master db shouldn't be used for stuff like that.