我能夠用drupal安裝目錄中運行的php文件重建我的泛洪表,並在其中輸入:只需輸入url mysite.com/myphpfile.php即可運行它。
<?php
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
require_once DRUPAL_ROOT . '/includes/password.inc';
$schema = array();
$schema['flood'] = array(
'fields' => array(
'fid' => array(
'type' => 'int',
'length' => 11,
'not null' => TRUE,
),
'event' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'identifier' => array(
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
),
'timestamp' => array(
'type' => 'int',
'length' => 11,
'not null' => TRUE,
),
'expiration' => array(
'type' => 'int',
'length' => 11,
'not null' => TRUE,
),
),
'primary key' => array('fid'),
);
db_create_table('flood', $schema['flood']);
print "Done. Please delete this file immediately!";
drupal_exit();
?>
不確定你在說什麼。我寫了代碼,我只是在尋找關於如何使用PHP重建洪泛表的drupal指南。不知道你爲什麼認爲屬於serverfault社區。 – rankind
http://stackoverflow.com/help/how-to-ask –
這不是我第一次在這裏尋求幫助。任何知道drupal和PHP的人都會對我所要求的內容有非常清楚的理解。 – rankind