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

相關問題