最近,无论什么类型,每次尝试添加内容时,我都开始出错。这是浏览器中显示的错误:
处理异常时引发的其他未捕获异常。
原始PDOException:SQLSTATE [HY000]:常规错误:2006 MySQL服务器已消失:从{comment} WHERE status =:status;中选择COUNT(cid); comment_count_unpublished()中的数组([:status] => 0)(/ Applications / MAMP / htdocs / modules / comment / comment.module的第313行)。
额外
PDOException:SQLSTATE [HY000]:常规错误:2006 MySQL服务器已消失:INSERT INTO {watchdog}(uid,类型,消息,变量,严重性,链接,位置,引用,主机名,时间戳)VALUES(:db_insert_placeholder_0,:db_insert_placeholder_1 ,:db_insert_placeholder_2,:db_insert_placeholder_3,:db_insert_placeholder_4,:db_insert_placeholder_5,:db_insert_placeholder_6,:db_insert_placeholder_7,:db_insert_placeholder_8,:db_insert_placeholder_9); 数组([:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] =>%type:!%function中的消息(%file的%line行)。[:db_insert_placeholder_3] => a:6:{ s:5:“%type”; s:12:“ PDOException”; s:8:“!message”; s:154:“ SQLSTATE [HY000]:常规错误:2006 MySQL服务器消失了:从{comment} WHERE status =:status;中选择COUNT(cid);数组([:status] => 0)“; s:9:”%function“; s:27:” comment_count_unpublished()“; s:5:”%file“; s:56:” / Applications / MAMP /htdocs/modules/comment/comment.module";s:5:"%line";i:313;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] = > [:db_insert_placeholder_6] =>http:// localhost:8888 /?q = node%2Fadd%2Farcade-project&amp ; [:db_insert_placeholder_7] => http:// localhost:8888 / [:db_insert_placeholder_8] => 127.0.0.1 [:db_insert_placeholder_9] => 1338336955)在dblog_watchdog()中(/ Applications / MAMP / htdocs / modules / dblog / dblog.module)。
我的php错误文件中也出现以下错误:
PHP致命错误:/Applications/MAMP/htdocs/includes/database/database.inc:2136中出现消息“ SQLSTATE [HY000]:未捕获的异常” PDOException”:常规错误:2006 MySQL服务器已消失”
堆栈跟踪:
0 /Applications/MAMP/htdocs/includes/database/database.inc(2136):PDOStatement-> execute(Array)
1 /Applications/MAMP/htdocs/includes/database/database.inc(664):DatabaseStatementBase- > execute(Array,Array)
2 /Applications/MAMP/htdocs/includes/database/database.inc(2315):DatabaseConnection-> query('SELECT expire,...',Array,Array)
3 / Applications / MAMP / htdocs / includes / lock.inc(167):db_query('SELECT expire,...',Array)
4 /Applications/MAMP/htdocs/includes/lock.inc(146):lock_may_be_available('theme_registry:...' )
5 /Applications/MAMP/htdocs/includes/theme.inc(447):lock_acquire('theme_registry:...')6 /Applications/MAMP/htdocs/includes/bootstrap.inc(427
):ThemeRegistry-> set(数组)
7 [内部功能]:DrupalCacheArray-> __ destruct()
8在2136行的/Applications/MAMP/htdocs/includes/database/database.inc中抛出了{main}
我在解读这些错误消息时遇到了一些麻烦。谁能帮助我了解这里的事吗?