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) »
  • Database permission error on creating any type of contact
Pages: [1]

Author Topic: Database permission error on creating any type of contact  (Read 1527 times)

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Database permission error on creating any type of contact
June 19, 2009, 02:58:56 pm
CiviCRM's backend seems to work and I can edit various bits of the configuration, set tabs, create groups etc. However, whenever I try to create any sort of contact (organisation, individual etc) I get a database error report (this one on a "check for matching contacts" when putting in my name, but similar output when trying to create a contact). Obviously I've had to change the name and password a bit..

Code: [Select]
Sorry. A non-recoverable error has occurred.


DB Error: insufficient permissions

Database Error Code: Access denied for user 'xxx-x-xxx-xxx'@'%' to database 'xxx-x-xxx-xxx', 1044

Return to home page.

Error Details:

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

    [JUST_ADDED_TO_STOP_FORUM_READING_THIS_TAG_WRONGcode] => -26
    [message] => DB Error: insufficient permissions
    [mode] => 16
    [debug_info] => CREATE TEMPORARY TABLE dedupe SELECT id id, 5 weight FROM civicrm_contact WHERE first_name = 'ed' UNION ALL SELECT id id, 7 weight FROM civicrm_contact WHERE last_name = 'xxxxxxxx' UNION ALL SELECT contact_id id, 10 weight FROM civicrm_email WHERE email = 'NULL' [nativecode=1044 ** Access denied for user 'xxxxxx-x-xxx-xxx'@'%' to database 'xxxxxx-x-xxx-xxx']
    [type] => DB_Error
    [user_info] => CREATE TEMPORARY TABLE dedupe SELECT id id, 5 weight FROM civicrm_contact WHERE first_name = 'xxxxxx' UNION ALL SELECT id id, 7 weight FROM civicrm_contact WHERE last_name = 'xxxxxxxx' UNION ALL SELECT contact_id id, 10 weight FROM civicrm_email WHERE email = 'NULL' [nativecode=1044 ** Access denied for user 'xxxxxx-x-xxx-xxx'@'%' to database 'xxxxxx-x-xxx-xxx']
    [to_string] => [db_error: message="DB Error: insufficient permissions" code=-26 mode=callback callback=CRM_Core_Error::handle prefix="" info="CREATE TEMPORARY TABLE dedupe SELECT id id, 5 weight FROM civicrm_contact WHERE first_name = 'xxxxxx' UNION ALL SELECT id id, 7 weight FROM civicrm_contact WHERE last_name = 'xxxxxxxx' UNION ALL SELECT contact_id id, 10 weight FROM civicrm_email WHERE email = 'NULL' [nativecode=1044 ** Access denied for user 'xxxxxx-x-xxx-xxx'@'%' to database 'xxxxxx-x-xxx-xxx']"]
)

Any ideas? The database is on 'localhost' but shows as '@'%' on this. The database name, password and format all look right in the config files that I have found, and clearly it can access them for the other functionality.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Database permission error on creating any type of contact
June 19, 2009, 04:04:34 pm
Looks like the database USER configured for your CiviCRM DB doesn't have the "Create temporary table" permission. You'll need to add that permission in MySQL.
Protect your investment in CiviCRM by  becoming a Member!

EdP

  • I post frequently
  • ***
  • Posts: 260
  • Karma: 7
  • CiviCRM version: 4.4
  • CMS version: Joomla 2.5.x
Re: Database permission error on creating any type of contact
June 20, 2009, 05:36:24 am
Thanks. I took this up with my hosting provider and was told that they only grant the following rights:
SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES
by default and will grant the following if asked, but no others.
CREATE TEMPORARY TABLES, CREATE VIEW, and CREATE ROUTINE

I've now asked for CREATE TEMPORARY TABLES
but am I likely to have any problems with this set of commands?

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: Database permission error on creating any type of contact
June 20, 2009, 06:48:22 am

that permission should work. If you are in London, you might be interested in our training camps next week:

http://civicrm.org/civicrm/event/info?reset=1&id=4
http://civicrm.org/civicrm/event/info?reset=1&id=8

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]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Database permission error on creating any type of contact

This forum was archived on 2017-11-26.