之前用別的虛擬主機安裝沒出什麼問題,但搬到昨天剛申請的 Dreamhost 卻問題連連..
在進行設定安裝 wizard.php 部分時,記得好像有看過一篇文章說 Dreamhost 的 mysql 跟 Apache 是放在不同台機器,
所以 Database server沒 設為 localhost,因此我直接填入 Database 的位置,結果出了錯誤訊息,它找不到@@
Exception message: mysql_connect(): Unknown MySQL server host 'plog.mlchen.net ' (1)
Error code: 2
-- Backtrace --
/home/.basil/mlchen/mlchen.net/plog/class/database/adodb/drivers/adodb-mysql.inc.php(339): mysql_connect
/home/.basil/mlchen/mlchen.net/plog/class/database/adodb/adodb.inc.php(413): adodb_mysql._connect
/home/.basil/mlchen/mlchen.net/plog/wizard.php(656): adodb_mysql.connect
/home/.basil/mlchen/mlchen.net/plog/wizard.php(937): connectdb
/home/.basil/mlchen/mlchen.net/plog/class/controller/controller.class.php(305): wizardsteptwo.perform
/home/.basil/mlchen/mlchen.net/plog/wizard.php(1814): controller.process
Exception message: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource
Error code: 2
-- Backtrace --
/home/.basil/mlchen/mlchen.net/plog/class/database/adodb/drivers/adodb-mysql.inc.php(394): mysql_get_server_info
/home/.basil/mlchen/mlchen.net/plog/class/database/adodb/drivers/adodb-mysql.inc.php(347): adodb_mysql._issupportutf8
/home/.basil/mlchen/mlchen.net/plog/class/database/adodb/adodb.inc.php(413): adodb_mysql._connect
/home/.basil/mlchen/mlchen.net/plog/wizard.php(656): adodb_mysql.connect
/home/.basil/mlchen/mlchen.net/plog/wizard.php(937): connectdb
/home/.basil/mlchen/mlchen.net/plog/class/controller/controller.class.php(305): wizardsteptwo.perform
/home/.basil/mlchen/mlchen.net/plog/wizard.php(1814): controller.process
Fatal error: Call to a member function on a non-object in /home/.basil/mlchen/mlchen.net/plog/wizard.php on line 938
真奇怪,之前安裝一次成功,還想說安裝 plog 那麼簡單,真的要好好推廣一下!
結果現在卻好像因為 mysql 問題連安裝都沒搞定。