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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Insufficient Permissions to Drop Tables
Pages: [1]

Author Topic: Insufficient Permissions to Drop Tables  (Read 2462 times)

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Insufficient Permissions to Drop Tables
November 07, 2011, 07:02:18 am
I am new to CiviCRM and experiencing the errors during the Drupal-CiviCRM installation process.

I created a separate database for civiCRM from Drupal database, and created a user with the same name and password as Drupal's database for CiviCRM. The installer screen showed me that "You're ready to install!" "Database version and connection settings have been verified and look correct!", but when I proceed the installation process, I am presented a fatal error message:
".....If you receive a fatal error, refresh this page to continue the installation
Building database schema and setup files...
Cannot execute DROP TABLE IF EXISTS civicrm_pledge_payment: DB Error: insufficient permissions"


Can anybody please tell me what permissions/privileges should be granted to the civiCRM DB user? I did not experience any problem when I was installing civiCRM on my local computer since I simply grant civiCRM user all permissions, but this time is on the testing server, and I don't have control over the DB server. Only my DBA has, but I have to let him know what I exactly need, otherwise, he would be mad at me :(

So anybody please give me some clear directions on the civiCRM DB user's permission. Much appreciate!!!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Insufficient Permissions to Drop Tables
November 07, 2011, 07:49:47 am
The user needs CREATE TABLE privileges. May be others also, but that's the one you're missing.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Insufficient Permissions to Drop Tables
November 07, 2011, 08:32:39 am
Thanks a lot for your quick reply, Hershel!

Is that OK, I mean security wise, if I ask my DBA to grant the civicrm DB user all privileges? He does not like to be bugged too often :(

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Insufficient Permissions to Drop Tables
November 07, 2011, 08:34:35 am
To grant that user all privileges to the CiviCRM database is certainly safe, yes.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 10:13:11 am
Hi Hershel and everybody,

My DBA told me he has already grant all privileges to the civicrm DB, but I am still not able to install the CiviCRM. The error message is:

Cannot execute DROP TABLE IF EXISTS civicrm_pledge_payment: DB Error: insufficient permissions

Do you know why's that?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 10:15:06 am
Your error is "insufficient permissions" which is something you will need to discuss with your DBA.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 10:26:31 am
That's very interesting.
He said the civicrm db user "had everything". Is there a way for me to check this user's privileges? I have the user name and password and had mysql workbench on my computer?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 10:30:10 am
Yes, login to MySQL with that user and run

Code: [Select]
DROP TABLE IF EXISTS civicrm_pledge_payment;
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 10:49:04 am
Tried and no these permissions granted :(

Another question: the DBA said that with all data and structure privileges granted, the database would be easily hacked/messed up by miscellaneous sql injection code. I wonder if there is a list of required permissions for the civicrm database user to ensure the security while having a smooth installation, configuration, and development.

Thanks a lot for your quick response!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 10:50:20 am
I don't think such a list exists and I think your DB's concerns are unfounded.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 12:44:36 pm
The civiCRM has been installed now. The problem was the DBA assigned accidentally the permissions to drupal database user, not the civicrm DB user:(

Many thanks to Hershel for the responses!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Insufficient Permissions to Drop Tables
November 08, 2011, 12:47:52 pm
My pleasure. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Insufficient Permissions to Drop Tables

This forum was archived on 2017-11-26.