我不擅长Drupal,并试图简单地将Drupal 6.8站点迁移到新的服务器/主机。迁移Drupal 6.8到新的服务器导致错误,没有别的出现
我从旧主机转储数据库,在新建的数据库上建立一个新的数据库并将数据导入到它。然后移动所有文件,再次检查权限并更改设置文件中的数据库信息。有一堆错误(更多一点)。
我也在我的本地MAMP设置上做了同样的事情,网站出现没有问题。
所以在新主机上我得到这些错误(改变真实服务器路径只是为了安全起见):
Warning: Table 'nwreloc_drupal.nwreloc_access' doesn't exist query: SELECT 1 FROM nwreloc_access WHERE type = 'host' AND LOWER('71.237.232.221') LIKE LOWER(mask) AND status = 0 LIMIT 0, 1 in /my/path/to/public_html/includes/database.mysql.inc on line 128
Warning: Table 'nwreloc_drupal.nwreloc_users' doesn't exist query: SELECT u., s. FROM nwreloc_users u INNER JOIN nwreloc_sessions s ON u.uid = s.uid WHERE s.sid = '9bvlnfohspprnjrhoah46o83e7' in /my/path/to/public_html/includes/database.mysql.inc on line 128
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /my/path/to/public_html/includes/database.mysql.inc:128) in /my/path/to/public_html/includes/bootstrap.inc on line 1009
Warning: Table 'nwreloc_drupal.nwreloc_cache' doesn't exist query: SELECT data, created, headers, expire, serialized FROM nwreloc_cache WHERE cid = 'variables' in /my/path/to/public_html/includes/database.mysql.inc on line 128
Warning: Table 'nwreloc_drupal.nwreloc_variable' doesn't exist query: SELECT * FROM nwreloc_variable in /my/path/to/public_html/includes/database.mysql.inc on line 128
Warning: Table 'nwreloc_drupal.nwreloc_cache' doesn't exist query: UPDATE nwreloc_cache SET data = '', created = 1297381191, expire = 0, headers = '', serialized = 0 WHERE cid = 'variables' in /my/path/to/public_html/includes/database.mysql.inc on line 128
Warning: Table 'nwreloc_drupal.nwreloc_system' doesn't exist query: SELECT name, filename, throttle FROM nwreloc_system WHERE type = 'module' AND status = 1 AND bootstrap = 1 ORDER BY weight ASC, filename ASC in /my/path/to/public_html/includes/database.mysql.inc on line 128
Warning: Cannot modify header information - headers already sent by (output started at /my/path/to/public_html/includes/database.mysql.inc:128) in /my/path/to/public_html/includes/bootstrap.inc on line 610
Warning: Cannot modify header information - headers already sent by (output started at /my/path/to/public_html/includes/database.mysql.inc:128) in /my/path/to/public_html/includes/bootstrap.inc on line 611
Warning: Cannot modify header information - headers already sent by (output started at /my/path/to/public_html/includes/database.mysql.inc:128) in /my/path/to/public_html/includes/bootstrap.inc on line 612
Warning: Cannot modify header information - headers already sent by (output started at /my/path/to/public_html/includes/database.mysql.inc:128) in /my/path/to/public_html/includes/bootstrap.inc on line 613
Warning: Table 'nwreloc_drupal.nwreloc_url_alias' doesn't exist query: SELECT COUNT(pid) FROM nwreloc_url_alias in /my/path/to/public_html/includes/database.mysql.inc on line 128
任何帮助将不胜感激!
没关系!发现我的问题。错误的$ db_prefix。 D'哦! – 2011-02-11 02:09:44