4571 Posts in 1384 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1116 Views |
-
Read only database

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!
-
Re: Read only database

13 February 2009 at 10:20pm
Well... you could try switching off the statistics...
Comment out in sapphire/core/control/ContentController.php
//Statistics::collect();
| 1116 Views | ||
|
Page:
1
|
Go to Top |


