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) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Documentation about mysqldump and routines
Pages: [1]

Author Topic: Documentation about mysqldump and routines  (Read 411 times)

ñull

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.6.8
  • CMS version: Drupal
  • MySQL version: 5.5.41
  • PHP version: 5.4.39
Documentation about mysqldump and routines
May 21, 2015, 05:12:45 am
I noticed that CiviCRM uses a MySQL stored function. With a default mysqldump or phpadmin export this function was not included. I googled and I did not see any explicit mention of this in the CiviCRM context. May be because this stored function was only recently introduced?

When you do a mysqldump apparently you have to add the --routines or -R switch to include also these in your dump. I went through a complete reinstall before I found out it had to do with the missing function in the dump file that CiviCRM did not restore correctly. Since you only notice this problem when you restore to a complete blank database, it might be that this has drawn little attention. Still the same I think it is important to highlight it somewhere in documentation. 


ñull

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.6.8
  • CMS version: Drupal
  • MySQL version: 5.5.41
  • PHP version: 5.4.39
Re: Documentation about mysqldump and routines
May 21, 2015, 05:49:02 am
I just discovered that drush civicrm-sql-dump is not including this switch either and therefore I felt free to  report it as a bug

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Documentation about mysqldump and routines
May 21, 2015, 07:33:31 am
Are you talking about the "STRIP NON NUMERIC" function?
CiviCRM will automatically rebuild that at runtime if it detects it is missing (which is probably why you don't hear complaints).
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • General Discussion (please no support requests here!) (Moderator: Michał Mach) »
  • Documentation about mysqldump and routines

This forum was archived on 2017-11-26.