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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • DB Error
Pages: [1]

Author Topic: DB Error  (Read 962 times)

chogarth

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 2.29
  • CMS version: Joomla 1.5.23
  • MySQL version: 5 not sure
  • PHP version: 5 not sure
DB Error
September 08, 2011, 01:18:02 pm
Hi,

I recently changed the password to my MySql database and now I am receiving an error message whenever someone tries to register for an Event.  Below is the error message, can anyone help me with the file(s) or fields that need changing too?:

Sorry. A non-recoverable error has occurred. The error trace below might help to resolve the issue

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -24
    [message] => DB Error: connect failed
    [mode] => 16
    [debug_info] =>  [nativecode=mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'snaf'@'184.168.152.8' (using password: YES)]
    [type] => DB_Error
    [user_info] =>  [nativecode=mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'snaf'@'184.168.152.8' (using password: YES)]
    [to_string] => [db_error: message="DB Error: connect failed" code=-24 mode=callback callback=CRM_Core_Error::handle prefix="" info=" [nativecode=mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'snaf'@'184.168.152.8' (using password: YES)]"]
)


I looked at the civicrm.settings but I am not exactly sure what I would need to change there.

Thanks.

C. :'(

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: DB Error
September 08, 2011, 07:37:15 pm
You'e looking for CIVICRM_DSN

 *      DB Name = drupal, DB User = drupal
 *      define( 'CIVICRM_DSN'         , 'mysql://drupal:YOUR_PASSWORD@localhost/drupal?new_link=true' );
 *
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • DB Error

This forum was archived on 2017-11-26.