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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Dharma Tech db_tools question
Pages: [1]

Author Topic: Dharma Tech db_tools question  (Read 971 times)

axlroach

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
Dharma Tech db_tools question
January 25, 2010, 06:18:22 pm
Hi,

I'm trying to use dharma tech's civicrm_db_tools script (v1.2) to test the integrity of a 1.9 db before upgrading to 2.0 (on my way to 3).  I need to include a mysql port number.  I've tried:

php ./civicrm_db_integrity.php -u<user_name> -p<password> -h<host_name>:<port_number> <database_name>

Can't connect to MySQL server on <host_name>:<port_number>:
   SQLSTATE[HY000] [2005] Unknown MySQL server host '<host_name>:<port_number>' (1)

IIRC, this same command connected just fine using an older version of the db_tools script.

What is the correct way to include a mysql port number to the script command?

Thanks,
axlroach

fen

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 13
    • CivicActions
  • CiviCRM version: 3.3-4.3
  • CMS version: Drupal 6/7
  • MySQL version: 5.1/5.5
  • PHP version: 5.3/5.4
Re: Dharma Tech db_tools question
January 26, 2010, 10:00:03 am
I've got an older version, too, and have been stymied while trying to use version 1.2 with a custom port.

I looked in the code - looks like the option isn't being parsed into the PDO object but not sure where that (isn't) happening.

Help would be appreciated.

Thanks,
=Fen

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Dharma Tech db_tools question
March 24, 2010, 05:57:20 pm
I'm not even able to run the script 1.2 - I get civicrm_db_integrity.php: Fatal error</b>:  Class 'PDO' not found in ... on 249

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Dharma Tech db_tools question
March 24, 2010, 09:45:49 pm
figured it out - needed to compile PDO in PHP

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Dharma Tech db_tools question

This forum was archived on 2017-11-26.