2011-02-11 55 views
0

我不擅长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

任何帮助将不胜感激!

+0

没关系!发现我的问题。错误的$ db_prefix。 D'哦! – 2011-02-11 02:09:44

回答

0

我倾向于使用backup/migrate module来完成我的迁移。它足够聪明,省去了所有的缓存表,这意味着我不需要通过shell或使用某个SQL客户端来填充数据库(尽管您仍然需要创建模式和用户)。

另外,你应该更新你的Drupal版本,因为我确信自从6.8版本以来会有多个安全版本。如果这是生产,那么你应该配置PHP,以便错误应该只能去日志(恕我直言,在任何情况下一个好主意)。

+0

刚刚看到您的回复 - 仍然需要真正学习Drupal,以便您的信息能派上用场。谢谢!! – 2011-02-11 02:10:49