GRANT ALL PRIVILEGES ON cspace.* TO 'test'@'localhost' IDENTIFIED BY 'test' WITH GRANT OPTION;\r
FLUSH PRIVILEGES;\r
GRANT ALL PRIVILEGES ON nuxeo.* TO 'test'@'localhost' IDENTIFIED BY 'test' WITH GRANT OPTION;\r
+--\r
+-- Grant privileges to read-only user on Nuxeo, for reporting. \r
+--\r
+GRANT SELECT ON nuxeo.* TO 'reader'@'localhost' IDENTIFIED BY 'read';\r
+--\r
+-- Grant privileges to remote read-only users on Nuxeo, for reporting. \r
+-- These should be changed to reflect your domain. Avoid specifying\r
+-- 'reader'@'%' (while simple and flexible, this is a potential security hole).\r
+--\r
+GRANT SELECT ON nuxeo.* TO 'reader'@'%.berkeley.edu' IDENTIFIED BY 'read';\r
+GRANT SELECT ON nuxeo.* TO 'reader'@'%.movingimage.us' IDENTIFIED BY 'read';\r
FLUSH PRIVILEGES;\r
\r