LifeType 中文開發論壇

支援 => 安裝與設定 => 主題作者是: 酸奶瓶 於 四月 03, 2005, 10:43:04 下午



主題: 我是很菜的鸟,请大虾帮忙
作者: 酸奶瓶四月 03, 2005, 10:43:04 下午
我在fc3下用他自带的web套件做的,是哪里出了问题????

Exception message: mysql_connect(): Host '222.28.137.20' is not allowed to connect to this MySQL server
Error code: 2
-- Backtrace --
/var/www/html/plog/class/database/adodb/drivers/adodb-mysql.inc.php(339): mysql_connect
/var/www/html/plog/class/database/adodb/adodb.inc.php(413): adodb_mysql._connect
/var/www/html/plog/wizard.php(654): adodb_mysql.connect
/var/www/html/plog/wizard.php(904): connectdb
/var/www/html/plog/class/controller/controller.class.php(305): wizardsteptwo.perform
/var/www/html/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 --
/var/www/html/plog/class/database/adodb/drivers/adodb-mysql.inc.php(394): mysql_get_server_info
/var/www/html/plog/class/database/adodb/drivers/adodb-mysql.inc.php(347): adodb_mysql._issupportutf8
/var/www/html/plog/class/database/adodb/adodb.inc.php(413): adodb_mysql._connect
/var/www/html/plog/wizard.php(654): adodb_mysql.connect
/var/www/html/plog/wizard.php(904): connectdb
/var/www/html/plog/class/controller/controller.class.php(305): wizardsteptwo.perform
/var/www/html/plog/wizard.php(1814): controller.process

Exception message: mysql_connect(): Host '222.28.137.20' is not allowed to connect to this MySQL server
Error code: 2
-- Backtrace --
/var/www/html/plog/class/database/adodb/drivers/adodb-mysql.inc.php(339): mysql_connect
/var/www/html/plog/class/database/adodb/adodb.inc.php(413): adodb_mysql._connect
/var/www/html/plog/wizard.php(656): adodb_mysql.connect
/var/www/html/plog/wizard.php(916): connectdb
/var/www/html/plog/class/controller/controller.class.php(305): wizardsteptwo.perform
/var/www/html/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 --
/var/www/html/plog/class/database/adodb/drivers/adodb-mysql.inc.php(394): mysql_get_server_info
/var/www/html/plog/class/database/adodb/drivers/adodb-mysql.inc.php(347): adodb_mysql._issupportutf8
/var/www/html/plog/class/database/adodb/adodb.inc.php(413): adodb_mysql._connect
/var/www/html/plog/wizard.php(656): adodb_mysql.connect
/var/www/html/plog/wizard.php(916): connectdb
/var/www/html/plog/class/controller/controller.class.php(305): wizardsteptwo.perform
/var/www/html/plog/wizard.php(1814): controller.process


主題: 我是很菜的鸟,请大虾帮忙
作者: markwu四月 03, 2005, 10:48:00 下午
引用
Exception message: mysql_connect(): Host '222.28.137.20' is not allowed to connect to this MySQL server


你的 DB 跟 Apache 是同一台嗎?還是裝在不同的機器上!這個訊息是告訴你,你的DB不讓你用這個 client IP  '222.28.137.20' 來連結!

Mark


主題: 我是很菜的鸟,请大虾帮忙
作者: lss四月 03, 2005, 11:41:46 下午
補充一下,如果你的 MySQL 與 Apache 是同一部主機,請將 plog 裡的 mysql 連線設成 localhost ,而非主機 IP。

也就是 config/config.properties.php 裡的 db_host 應該是下面這樣。
程式碼:
$config["db_host"] = "localhost";


主題: 好了~~谢谢各位达人~~
作者: 酸奶瓶四月 04, 2005, 08:04:19 上午
好了~~谢谢各位达人~~