Drupal 安装 PDOException
http://localhost
有问题:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal_test.semaphore' 不存在:SELECT expire, value FROM {semaphore} WHERE name = :name;lock_may_be_available() 中的数组( [:name] => variable_init )(/var/www/drupal/includes/lock.inc 的第 165 行).
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.
相关文章