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, biapar, Willr, Ingo, swaiba, simon_w

Read only database


Reply

2 Posts   1267 Views

Avatar
tvachon

13 February 2009 at 2:35pm Community Member, 3 Posts

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?

Thanks!

Avatar
Fuzz10

13 February 2009 at 10:20pm Community Member, 787 Posts

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

Comment out in sapphire/core/control/ContentController.php
//Statistics::collect();