diff --git a/config/config.php b/config/config.php index 4095dbba33..aec4c336dc 100644 --- a/config/config.php +++ b/config/config.php @@ -64,12 +64,12 @@ $config->slaveDB = new stdclass(); $config->db->persistant = false; // 是否为持续连接。 Pconnect or not. $config->db->driver = 'mysql'; // 目前只支持MySQL数据库。Must be MySQL. Don't support other database server yet. $config->db->encoding = 'UTF8'; // 数据库编码。 Encoding of database. -$config->db->strictMode = false; // 关闭MySQL的严格模式。 Turn off the strict mode of MySQL. +$config->db->strictMode = true; // 默认开启MySQL的严格模式。 Turn on the strict mode of MySQL. $config->db->prefix = 'zt_'; // 数据库表名前缀。 The prefix of the table name. $config->slaveDB->persistant = false; $config->slaveDB->driver = 'mysql'; $config->slaveDB->encoding = 'UTF8'; -$config->slaveDB->strictMode = false; +$config->slaveDB->strictMode = true; /* 可用域名后缀列表。Domain postfix lists. */ $config->domainPostfix = "|com|com.cn|com.hk|com.tw|com.vc|edu.cn|es|";