加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – Drupal安装PDOException

发布时间:2020-12-13 22:08:57 所属栏目:PHP教程 来源:网络整理
导读:http:// localhost遇到问题: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘drupal_test.semaphore’ doesn’t exist: SELECT expire,value FROM {semaphore} WHERE name = :name; Array ( [:name] = variable_init ) in lo
http:// localhost遇到问题:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘drupal_test.semaphore’ doesn’t exist: SELECT expire,value FROM {semaphore} WHERE name = :name; Array ( [:name] => variable_init ) in lock_may_be_available() (line 165 of /var/www/drupal/includes/lock.inc).

这是我的数据库配置:

$databases = array (
  'default' => 
  array (
    'default' => 
    array (
      'database' => 'drupal_test','username' => 'root','password' => 'XXX','host' => 'localhost','port' => '','driver' => 'mysql','prefix' => '',),);

该怎么办?

解决方法

很多时候只需卸载并再次尝试就可以修复这样的bug.安装可能有问题,也许你给它提供了一些不正确的信息.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读