首页 文章

SQLSTATE [HY000]:一般错误:1030

提问于
浏览
1

我正在我的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=utf8 COMMENT='Cache table for the rules engine to store configured items.';

它来自:https://www.drupal.org/node/2160645

但是当我现在尝试清除我的缓存时,我收到一个新错误:

PDOException: SQLSTATE[HY000]: General error: 1030 Got error -1 from storage engine: TRUNCATE {cache_rules} ; Array ( ) in cache_clear_all() (line 165 of C:\Users\Mariska\Sites\devdesktop\includes\cache.inc).

我做了一个备份并重新安装了Dev Desktop . 我用我的备份替换了Sites / DevDesktop文件夹,并将database.mysql放在MYSQL文件夹中 .

然后我得到一个cache_field错误,用查询恢复它,并再次发生cache_rules错误 . 以与之前相同的方式恢复 . 在这两种情况下,PHPMyadmin都说查询后'结果可以返回空' .

然后同样的错误1030 ......

我终于弄明白了 . 这是一个存储问题 . 迈克菲,这是我的病毒扫描程序搞砸了一切 . 我现在有一个新的,一个不会占用我的笔记本电脑的太多空间 . 让我们来看看 .

谢谢你,马里斯卡 .

1 回答

相关问题