我正在我的localhost上创建一个Drupal 7的网站 . 今天我得到了我的cache_rules缺失的众所周知的错误 . 我试图恢复它 . 这看起来很有效,因为我现在在数据库中看到了这个表 . 但是,PHPMyadmin在查询后表示“结果回来了” . 它是否正确 .
我用这段代码来恢复它:
CREATE TABLE IF NOT EXISTS `XX_cache_rules` (`cid` varchar(255) NOT NULL DEFAULT '' COMMENT 'Primary Key: Unique cache ID.', `data` longblob COMMENT 'A collection of data to cache.', `expire` int(11) NOT NULL DEFAULT '0' COMMENT 'A Unix timestamp indicating when the cache entry should expire, or 0 for never.', `created` int(11) NOT NULL DEFAULT '0' COMMENT 'A Unix timestamp indicating when the cache entry was created.', `serialized` smallint(6) NOT NULL DEFAULT '0' COMMENT 'A flag to indicate whether content is serialized (1) or not (0).', PRIMARY KEY (`cid`), KEY `expire` (`expire`)) ENGINE=InnoDB DEFAULT CHARSET=ut