I just had Silverstripe screw up on me on a test server because I didn't give its MySQL username enough privileges on the database. This happened after I installed it. What are the minimum privileges that are required? I just enabled everything except the administration privileges, and now it works fine.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
any response on this?
From a security perspective I'd like to know the minimum privilege level I can run a MySQL user as once the site has been fully developed.
Create, insert, update, delete?
Paul
No idea what the minimum privileges are, sorry. I just made sure that it didn't have admin privileges, and left it at that.
Hans
The system admin who is setting up our production website has asked me exactly the same question.
Any ideas from anyone?
On my test server, the Silverstripe database user has the following privileges:
SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER.
That works fine for me. Silverstripe should complain if it doesn't have adequate permissions for an operation.
Hans
Hi Tama,
Running the user account with all privileges during development is required as the ORM will create and alter tables as your models changes.
It *should* then be OK to drop the privilege level down to select, insert, update, delete as during production SilverStripe won't be making any structural changes to tables.
Hi there
Thank you for the replies, I'll let our sysadmin know.
Cheers
Tama