Help me copy a Drupal install for local sandbox testing
June 27, 2008 3:28 PM
Subscribe
I'm having some trouble recreating a Drupal site on my local machine for testing/sandbox purposes. The mysql databases are the biggest stumbling block at the moment - very basic, beginner advice is probably needed.
Short into: I took on a freelance project to redesign a site that's currently built in Drupal, which I've never used. It was my intent to nuke the current site & rebuild a static site, as Drupal is serious overkill for what this site needs. However, it turns out the client is well attached to some of the current features (the video management tool in particular, but also the "news story" updates & such). Since I don't know Drupal at all, I declined to attempt a site update without extensive testing first, and proceeded to try & recreate the site on my home machine. I have installed Apache 2.2, PHP 5.0, Drupal 6.2 & MySQL 5.0 successfully, and all four appear to be working.
Here's the current problem - I have no idea how to get the source databases working with my installation. I backed up the databases via the online control panel, but I've just realized that what I have are backup files, not the actual DBs. Attempting a restore via MySQL Administrator tells me "The selected file was generated by mysqldump and cannot be restored by this application." I'm obviously in way over my head - I've done a variety of work in php & the like, but I've never been responsible for setting up or maintaining databases, so I might have bitten off more than I can chew here.
Questions: can what I'm trying to do here actually be done? That is, will it be possible to essentially mirror the original website on my localhost so I can learn without blowing up the live site? Would it be better to create new local databases & attempt to recreate the site that way? Or should I stop wasting my time and just nuke the sucker in favor of a simple, static site?
I'll be working on this all weekend, so any and all questions can be addressed. E-mail's in the profile if needed.
posted by Banky_Edwards to computers & internet (7 comments total)
1 user marked this as a favorite
You'll then want to configure your Drupal instance to connect to the database with username/password/etc.
posted by rhizome at 3:47 PM on June 27, 2008