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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1659 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