Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Read only database

Go to End

2 Posts   1621 Views


Community Member, 3 Posts

13 February 2009 at 2:35pm

Hi folks

We'd like to be able to cut over to a read-only clone of our silverstripe database in case of master database failure, but when we try this we get:


Couldn't run query: INSERT INTO `PageView` SET Created = NOW() | The MySQL server is running with the --read-only option so it cannot execute this statement

is there a configuration variable we can set to avoid this problem? Has anyone else had experience with this configuration?



Community Member, 791 Posts

13 February 2009 at 10:20pm

Well... you could try switching off the statistics...

Comment out in sapphire/core/control/ContentController.php