CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • trouble moving database
Pages: [1]

Author Topic: trouble moving database  (Read 1338 times)

n1kk1w

  • Guest
trouble moving database
May 21, 2008, 12:51:52 pm
I'm trying to move an existing CiviCRM installation from my local computer (running 2.0.2) to the production host (running 2.0.3). Exporting the existing data out of the local database and into a sql file results in various errors when trying to recreate the database on the production server - at first glance because it looks like the dump file tries to create/populate tables in an order that breaks all sorts of fk constraints.  I'll post the specific errors if helpful, but first - is there any documentation anywhere that describes the steps necessary to migrate/install with an existing database?  I can't find anything.  Thanks.

n1kk1w

  • Guest
Re: trouble moving database
May 22, 2008, 11:54:42 am
For anyone who might be having the same problem, I think I found the solution.  I found the following:

http://wiki.civicrm.org/confluence/display/CRMDOC/Ensuring+Schema+Integrity+on+Upgrades

and modified the suggestions there.

Since I'm installing on CiviCRM 2.0.x, on the production server I ran civicrm.mysql rather than civicrm_41.mysql. I then dumped my data out of the local database with the flags noted, and read that back in to the production database. The first attempt failed, as it tried to load data into custom data tables not created by the generic civicrm.mysql script. Those tables are named civicrm_value_xxx.  I created a create-table script for those tables and reran everything.

So, it was basically this:
- on production server, run civicrm.mysql
- on production server, run script to create custom data tables
- on production server, run dumpFile.sql to load in local data

When I fired up CiviCRM, I received the following message:

"Error: Could not create directory: /Users.

If you have moved your database from a development install to a production install and the direcotory paths are different, please set the column config_backend in the civicrm_domain table to NULL. You will need to reinitialize your settings in the production install."

So, I set the column value to NULL, and things seem to be working. Hope this helps someone.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • trouble moving database

This forum was archived on 2017-11-26.