MySQL Database Privileges

Author Message

Matt Brady

Monday 16 October 2006 9:57:18 pm

What privileges are actually required to be GRANTed to run 3.8.3 on MySQL 4.1.2?
On one of my servers everything works fine but on another I need to GRANT more. For example CREATE TEMPORARY TABLES isn't on as default.
BTW the hosting company on the second server won't allow GRANT ALL so I need that actual privilege requirements.
Would be a useful addition to the Installation Requirements docs also :)

It's not easy being easy.

Kristof Coomans

Monday 16 October 2006 11:49:08 pm

Hello Matt

I always assign these table-specific privileges to the MySQL user used by eZ publish (I'm using the MySQL Administrator application):

CREATE
DROP
ALTER
DELETE
INDEX
INSERT
SELECT
UPDATE
CREATE TEMPORARY TABLES
LOCK TABLES

I think you can remove the following privileges after running the eZ publish setup wizard or after a manual setup:

CREATE
DROP
ALTER
INDEX

You will have to re-enable them before running any eZ publish upgrade scripts (mysql or PHP CLI), unless you run them with a more privileged MySQL user like root.

More information about the privileges on http://dev.mysql.com/doc/en/GRANT.html

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:28:02
Script start
Timing: Jan 30 2025 22:28:02
Module start 'layout'
Timing: Jan 30 2025 22:28:02
Module start 'content'
Timing: Jan 30 2025 22:28:02
Module end 'content'
Timing: Jan 30 2025 22:28:02
Script end

Main resources:

Total runtime0.0233 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.2344151.2109
Module start 'layout' 0.00490.0037 739.4453220.6875
Module start 'content' 0.00860.0131 960.1328997.8203
Module end 'content' 0.02170.0015 1,957.953129.9922
Script end 0.0233  1,987.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.1526140.0002
Check MTime0.00104.3331140.0001
Mysql Total
Database connection0.00083.231210.0008
Mysqli_queries0.002310.046630.0008
Looping result0.00000.043010.0000
Template Total0.00114.810.0011
Template load0.00093.879910.0009
Template processing0.00020.866610.0002
Override
Cache load0.00062.785110.0006
General
dbfile0.00219.053180.0003
String conversion0.00000.030740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs