What are the DB Privileges needed?

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
bragot
Posts: 9
Joined: Fri Mar 07, 2008 5:06 pm

What are the DB Privileges needed?

Post by bragot »

According to documentation, the following privileges are needed for the DB user:

The database user needs the permissions for CREATE, DROP, INSERT, UPDATE, DELETE and SELECT on all tables in the database.

I seemed to do this, but I get the following error when trying to run the installer script:

Error: Please install your version of phpMyFAQ once again or send us a bug report.
DB error: INDEX command denied to user 'faq1'@'localhost' for table 'faqsessions'
Query:
CREATE INDEX idx_user_time ON faqsessions (user_id, time)


Here are the steps I followed to install phpmyfaq:

1. Downloaded and installed XAMPP for windows using the EXE installer
2. Extracted phpmyfaq to a folder called faq under htdocs
3. Opened phpmyadmin and created a user called faquser
4. Created a new db call faqdb with collation utf8_unicode_ci (default setting)
5. Under privileges of faquser, granted the following global privileges:

CREATE, DROP, INSERT, UPDATE, DELETE and SELECT

When I try to install though, I get the error above. If I grant faquser all privileges, this will work correctly though. Does anyone have any suggestions?

Thanks.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I think you need the right to create indeces, too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply