Drupal安装PDOException [英] Drupal Installation PDOException

查看:119
本文介绍了Drupal安装PDOException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http:// localhost 遇到问题:


PDOException:SQLSTATE [ 42S02]:未找到基表或视图:1146drupal_test.semaphore不存在:SELECT expire,value FROM {semaphore} WHERE name =:name; lock_may_be_available()(第165行/var/www/drupal/includes/lock.inc)中的数组([:name] => variable_init)。

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' => '',
    ),
  ),
);

该怎么办?

推荐答案

很多次,只需卸载并再次尝试可以修复这样的错误。有可能安装有问题,也许你给了一些不正确的信息。

a lot of times simply uninstalling and trying again can fix bugs like this. It's possible that there was something wrong with the installation of maybe you gave it some incorrect information.

这篇关于Drupal安装PDOException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆