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) »
  • DB error: Insufficient permissions on CiviCRM 4.2.6
Pages: [1]

Author Topic: DB error: Insufficient permissions on CiviCRM 4.2.6  (Read 2265 times)

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
DB error: Insufficient permissions on CiviCRM 4.2.6
December 29, 2012, 07:01:38 am
Hi!

I have a new installation of CiviCRM 4.2.6 on a Joomla 2.5-site, where I can do a lot of configuration, such as setting mail adresses, I can sync contacts with Joomla and in that way get a number of contacts. However, when I try to manually add a contact, I get a DB error. Insufficient permissions (see more in detail below). The same if I try to set up a new mailing. Or if I try to import a CSV file with contacts.

I have checked the database details in administrator/components/com_civicrm/civicrm.settings.php, and they seem right (right user, right database name).  The log entry is below.

What to check or do?


Magnus

Code: [Select]

Dec 29 15:42:20  [info] $Fatal Error Details = Array
(
    [callback] => Array
        (
             => CRM_Core_Error[1] => handle
        )
[code] => -26
    [message] => DB Error: insufficient permissions
    [mode] => 16
    [debug_info] => CREATE TEMPORARY TABLE X_1
            (contact_id int primary key)
            ENGINE=HEAP [nativecode=1044 ** Access denied for user 'agslo2'@'localhost' to database 'agslo2']
    [type] => DB_Error
    [user_info] => CREATE TEMPORARY TABLE X_1
            (contact_id int primary key)
            ENGINE=HEAP [nativecode=1044 ** Access denied for user 'agslo2'@'localhost' to database 'agslo2']
    [to_string] => [db_error: message="DB Error: insufficient permissions" code=-26 mode=callback callback=CRM_Core_Error::handle prefix="" info="CREATE TEMPORARY TABLE X_1
            (contact_id int primary key)
            ENGINE=HEAP [nativecode=1044 ** Access denied for user 'agslo2'@'localhost' to database 'agslo2']"]
)
« Last Edit: December 29, 2012, 07:04:41 am by magnusl »

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: DB error: Insufficient permissions on CiviCRM 4.2.6
December 29, 2012, 07:10:45 am
It looks like the database user doesn't have sufficient permission to create tables, which is required by civicrm. take a look at your db user setup and permission for your database.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: DB error: Insufficient permissions on CiviCRM 4.2.6
December 29, 2012, 07:22:44 am
Hi!

Thanks for your reply! However, this is a hosted service, and I have only one user. So this is the same user that created all the civicrm-tables on installation. Further, I can log in via PhpMyadmin, with this user, and there create a new table. I feel at loss. What can I check or try?

Magnus

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: DB error: Insufficient permissions on CiviCRM 4.2.6
December 29, 2012, 07:48:01 am
create temporary tables permission is distinct from create tables permission.
sounds like you'll need to talk to your hosting provider to give that user permission.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: DB error: Insufficient permissions on CiviCRM 4.2.6
January 02, 2013, 04:52:02 am
Hi!

Got my permissions adjusted today by the host, and that fixed the problem. Thanks a lot!!

Magnus

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • DB error: Insufficient permissions on CiviCRM 4.2.6

This forum was archived on 2017-11-26.