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) »
  • SQL SYNTAX ISSUE COPYING DATABASE SO I CAN MOVE IT
Pages: [1]

Author Topic: SQL SYNTAX ISSUE COPYING DATABASE SO I CAN MOVE IT  (Read 757 times)

MulderDSM

  • I post occasionally
  • **
  • Posts: 100
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla 3.4.1
SQL SYNTAX ISSUE COPYING DATABASE SO I CAN MOVE IT
December 04, 2010, 03:29:36 pm
I'm running this statement on my existing database:

mysqldump -u dbo347926891 -p password11
--ignore-table=db347926891.civicrm_domain \
--ignore-table=db347926891.civicrm_acl_cache \
--ignore-table=db347926891.civicrm_acl_contact_cache
--ignore-table=db347926891.civicrm_cache  \
--ignore-table=db347926891.civicrm_group_contact_cache \
db347926891 > mycivicrmexport.sql

and I keep getting this error:

#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 dbo347926891 -p password11
--ignore-table=db347926891.civicrm_do' at line 1

please help.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: SQL SYNTAX ISSUE COPYING DATABASE SO I CAN MOVE IT
December 05, 2010, 09:50:51 pm
you might want to check this syntax

Code: [Select]
mysqldump -uusername -ppassword dbname --ignore-table=dbname.tablename --ignore-table=dbname.tablename --ignore-table=dbname.tablename > dbdumpFileName.mysql

kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • SQL SYNTAX ISSUE COPYING DATABASE SO I CAN MOVE IT

This forum was archived on 2017-11-26.