English 中文(简体)
表 drupal。 存在问题
原标题:Table drupal.access doesn t exist query

我正在研究第6博士,我已经将其从一个遥远的服务器迁移到了当地东道。 我为数据库建立了备份档案,并输入了该数据库。 现在,当我装上主页时,例如<编码>http:// localhost/abc。 我收到以下错误:

警告:表 存在问题: SlectT 1 from access WHERE category = Host and LOWER (1270.0.1 ) LIKE LOWER (mask) and status = 0MIT 0, 1 in C:wampwwwihlet1includesdatabase.mysqlic on line 128/

我感谢我提出解决办法。

最佳回答

This can happen for a couple of reasons:

  1. You have the "drupal." table prefix configured in your settings.php for the remote server, and this may not work for your localhost. Remove the prefix or change it for something that works on your local MySQL installation.
  2. You maybe need to run the update.php script, the DB dump may have skipped some tables and you need to make sure they re configured correctly.

问他们,告诉我,如果他们工作的话

问题回答

Quite simply the access table is missing from the database. Either your backup or import hasn t worked properly and that table hasn t made it through. You can run the following MySQL command to create the (empty) table:

DROP TABLE IF EXISTS `access`;
CREATE TABLE `access` (
  `aid` int(11) NOT NULL AUTO_INCREMENT,
  `mask` varchar(255) NOT NULL DEFAULT   ,
  `type` varchar(255) NOT NULL DEFAULT   ,
  `status` tinyint(4) NOT NULL DEFAULT  0 ,
  PRIMARY KEY (`aid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签