引用:
原帖由 zijie 于 2006-4-26 20:33 发表
我就是在国外的空间,没问题
你注意检查一下数据库的用户名有没有写错了
楼上的:我数据库是这样的
MySQL Account Maintenance
Databases: newdche0_newdesigntent
Users in newdesigntent
newdche0_root (Privileges: ALL PRIVILEGES)
Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:newdche0_newdesigntent:remotemysqlhost","newdche0_root","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("remotemysqlhost", "newdche0_root", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("newdche0_newdesigntent");
User: newdche0_root Db: newdche0_newdesigntent
Privileges: ALL ALTER CREATE TEMPORARY TABLES CREATE DELETE DROP SELECT INSERT UPDATE REFERENCES INDEX LOCK TABLES
Db:
--------------------------------------------------------------------------------
Users:
newdche0_root
UserName:
Password:
--------------------------------------------------------------------------------
Access Hosts:
esc76.midphase.com
localhost
remotemysqlhost
tanyi
Host (% wildcard is allowed):