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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2097 Views

Avatar
tvachon

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?

Thanks!

Avatar
Fuzz10

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
//Statistics::collect();