raksmart活动促销

分享

写回答

发帖

求助:数据库为什么建立不了?

国外虚拟主机 国外虚拟主机 2335 人阅读 | 2 人回复

发表于 2007-7-7 11:25:35 | 显示全部楼层 |阅读模式

才买了了空间,为什么建立不了数据库,老出现以下错误:
Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:niumeng0_niu:localhost","niumeng0_eqw","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "niumeng0_eqw", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("niumeng0_niu");  

请高手指点,在线等

回答|共 2 个

大漠孤狼

发表于 2007-7-7 11:27:58 | 显示全部楼层

这个不是错误提示,是告诉你数据库连接语句如何写的

niumeng000

发表于 2007-7-7 11:32:10 | 显示全部楼层

我用的时dedecms,安装时出现以下问题:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/niumeng0/public_html/include/pub_db_mysql.php:320) in /home/niumeng0/public_html/include/inc_userlogin.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/niumeng0/public_html/include/pub_db_mysql.php:320) in /home/niumeng0/public_html/include/inc_userlogin.php on line 3

请问这是什么情况?
您需要登录后才可以回帖 登录 | 注册

本版积分规则