我在Drupal网站中随机出现此错误。唯一的解决方法是从数据库中删除会话。
PDOException:SQLSTATE [HY000]:常规错误:1205超出锁定等待超时;尝试重新启动事务:SELECT revision.order_number AS order_number,revision.revision_id AS revision_id,revision.revision_uid AS revision_uid,revision.mail AS mail,revision.status AS status,revision.log AS log,revision.revision_timestamp AS revision_timestamp,revision.revision_hostname AS revision_hostname,revision.data AS数据,base.order_id AS order_id,base.type AS类型,base.uid AS uid,base.created AS created,base.changed AS已更改,base.hostname AS主机名FROM {commerce_order} base INNER JOIN {commerce_order_revision}修订版ON revision.revision_id = base.revision_id WHERE(base.order_id IN(:db_condition_placeholder_0))FOR UPDATE; DrupalDefaultEntityController-> load()中的数组([:db_condition_placeholder_0] => 1)(C:\ Sites \ includes \ entity.inc的第196行)。
你知道出了什么问题吗?
答案 0 :(得分:2)
已知sessions
表已损坏,请尝试对您的数据库运行REPAIR TABLE sessions
查询。