News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Database Permission Clarification

Started by MobileCS, July 24, 2016, 03:44:08 PM

Previous topic - Next topic

MobileCS

Could someone please clarify what database permissions are required for general use?

Quotehttp://download.simplemachines.org/requirements.php

The database user must have at least the following privileges: SELECT, INSERT, UPDATE, DELETE, ALTER, and INDEX.
The database user must have the CREATE and DROP privileges during installation, conversion and some package installs.

It appears the DROP permission is required at all times (not just during installation, conversion & package installs).

When I removed the DROP permission and click on "Show new replies to your posts", it errors out with :


http://www.example.com/forum/index.php?action=unreadreplies
Database Error: DROP command denied to user 'forum'@'localhost' for table 'smf_topics_posted_in'
File: /www/example.com/httpdocs/forum/Sources/Recent.php
Line: 946


Is the CREATE permission also required at all times now?

Illori

if you install mods then create may be required depending on the mod.

Arantor

Create and drop are also needed for unread replies since it makes a temporary table for processing.

MobileCS

Quote from: Arantor on July 25, 2016, 12:33:56 AM
Create and drop are also needed for unread replies since it makes a temporary table for processing.

Thank you, that's all I needed to know.

Perhaps the requirements page should be updated to reflect this : http://download.simplemachines.org/requirements.php



Advertisement: