TurnKey Linux Virtual Appliance Library

Migrating an existing Drupal 6 site

Hello,

I am interested to try out Turnkey Linux with Drupal 6. I have an existing site that I would migrate the core files, plus the "sites" and "files" folders and of course the database.

It is unclear to me where the core files in the Turnkey Linux Drupal 6 app install live. I could only find the sites and files folders.

It is also unclear to me what tools I could use to import the MySQL database. Can anyone help me out?

Thanks!

Alon Swartz's picture

a couple of pointers

Forgive me for being brief, I am in the middle of something but I thought I would provide some pointers to get you going:

Drupal locations:

/etc/drupal6
/usr/share/drupal6
/var/lib/drupal6

Regarding importing the database, you can either use phpmyadmin (https://appliance_ip:12322) or use the cli

mysql -pPASSWORD --batch --execute 'use drupal6; source /path/to/drupaldb_to_import.sql'

Gotcha: don't forget to use --add-drop-table when exporting the current drupal database

Good Luck!

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)