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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Problem Moving CiviCRM between Joomla Sites
Pages: [1]

Author Topic: Problem Moving CiviCRM between Joomla Sites  (Read 930 times)

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Problem Moving CiviCRM between Joomla Sites
February 17, 2011, 08:45:38 am
I'm trying to follow the instructions listed in the Wiki regarding moving between sites, however when I execute the command,

$ mysqldump -u  -p  --ignore-table=joomla_dev.civicrm_domain \
--ignore-table=joomla_dev.civicrm_acl_cache \
--ignore-table=joomla_dev.civicrm_acl_contact_cache --ignore-table=joomla_dev.civicrm_cache  \
--ignore-table=joomla_dev.civicrm_group_contact_cache \
joomla_dev > ipcasql.sql

 I get a mysql syntax error starting on line 1:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '$ mysqldump -u root -p --ignore-table=joomla_dev.civicrm_domain \ --ignore-tab' at line 1

When I tried to drop all the tables (except those listed above as ignore) and import my standard SQL dump of the Civi tables, I get an error that there's a Foreign Key issue and the tables can't be deleted.

Getting my CiviCRM data off my local dev machine and onto the server is the last thing I need to do before I can open up the site, and I can't seem to get there from here.  ???

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Problem Moving CiviCRM between Joomla Sites
February 21, 2011, 03:39:24 am
i wouldn't worry about ignoring those tables.
re: the foreign key issue, use: SET foreign_key_checks = 0;
at the beginning of the dump and SET foreign_key_checks = 1; at the end
so that on import foreign keys are not an issue.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: Problem Moving CiviCRM between Joomla Sites
February 21, 2011, 07:35:23 am
Problem is, I can't even get the dump to happen using the mysqldump command.

Can I set FK on the incoming server to 0 so I can use a standard mysql export, then change it back to 1 after?

Sorry - I've never had this kind of problem before and am completely at a loss. I even tried shelling in to my localhost to do the dump at root level and get the same bloody errors.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Problem Moving CiviCRM between Joomla Sites

This forum was archived on 2017-11-26.