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 »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • ORDER BY contact_a.sort_name' at line 5, 1064 Error
Pages: 1 [2]

Author Topic: ORDER BY contact_a.sort_name' at line 5, 1064 Error  (Read 4822 times)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: ORDER BY contact_a.sort_name' at line 5, 1064 Error
June 29, 2007, 09:06:23 pm
If you want to reset ALL data - you can load the following two SQL scripts:

civicrm/sql/civicrm_41.mysql
civicrm/sql/civicrm_data.mysql (if you don't need "sample" data) OR civicrm_generated.mysql (if you want the sample data)

Loading these files WILL destroy any existing contacts, profiles, contribution pages etc. - so don't take this approach if that's NOT what you want to do.
Protect your investment in CiviCRM by  becoming a Member!

joommaster

  • Guest
Re: ORDER BY contact_a.sort_name' at line 5, 1064 Error
June 30, 2007, 12:25:01 pm
May I ask a really basic question? What are the steps to take when loading the data? Thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: ORDER BY contact_a.sort_name' at line 5, 1064 Error
June 30, 2007, 12:40:00 pm

You might want to elaborate a bit more on what you mean by "loading data"

If you mean civicrm sample data, check dave's forum post above. You can also reset the database as dave describes above. Loading your own data is a different ball game, and u need to use the import tool and/or write your own custom sql load scripts to match the civicrm schema

lobo
 
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

joommaster

  • Guest
Re: ORDER BY contact_a.sort_name' at line 5, 1064 Error
June 30, 2007, 12:52:14 pm
I wanted to know how to do what Dave was saying:

you can load the following two SQL scripts:

civicrm/sql/civicrm_41.mysql
civicrm/sql/civicrm_data.mysql (if you don't need "sample" data) OR civicrm_generated.mysql (if you want the sample data)

What are the practical steps when doing this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: ORDER BY contact_a.sort_name' at line 5, 1064 Error
June 30, 2007, 12:59:54 pm

Two potential ways exist:

1. From the command line:

mysql -uYourDBUser -pYourDBPassword YourDBName < civicrm_41.mysql
mysql -uYourDBUser -pYourDBPassword YourDBName < civicrm_data.mysql

OR

2. You can use a program like PMA, check:

http://www.phpmyadmin.net/home_page/index.php

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • ORDER BY contact_a.sort_name' at line 5, 1064 Error

This forum was archived on 2017-11-26.