drupal建站后,在编辑内容时出现如下错误。请问大神,这个问题该如何解决。

Additionaluncaughtexceptionthrownwhilehandlingexception.OriginalPDOException:SQLSTATE... Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT b.* FROM {block} b WHERE (b.theme = :db_condition_placeholder_0) AND (b.status = :db_condition_placeholder_1) ORDER BY b.region ASC, b.weight ASC, b.module ASC; Array ( [:db_condition_placeholder_0] => bartik [:db_condition_placeholder_1] => 1 ) in _block_load_blocks() (line 727 of D:\wamp\www\drupal\modules\block\block.module).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.source = :source AND s.context = :context AND s.textgroup = 'default'; Array ( [:language] => zh-hans [:source] => A field which is not visible to the user, but is recorded with the submission. [:context] => ) in locale() (line 684 of D:\wamp\www\drupal\modules\locale\locale.module).

Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in _drupal_session_write() (line 209 of D:\wamp\www\drupal\includes\session.inc).
展开
 我来答
y80x86ol
推荐于2016-07-21 · TA获得超过366个赞
知道小有建树答主
回答量:190
采纳率:100%
帮助的人:131万
展开全部
数据库连接问题,你需要修改PHP的配置文件(百度搜索这个错误MySQL server has gone away
,然后进行修改),然后使用dos命令方式导入数据库。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式