小弟在网上下了个blog程序,mysql建库时报错:Warning: Cannot modify header information – headers already sent by ….
Warning: Cannot modify header information – headers already sent by (output started at C:/www/wp-admin/setup-config.php:23) in C:/www/wp-includes/wp-db.php on line 373
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can 't contact the database server at localhost. This could mean your host 's database server is down.
——解决方案——————–
去找WordPress的论坛问,你的配置文件中的用户名密码或者数据库什么的配置有问题。
——解决方案——————–
在你调用head函数之前,已经往客户端发送信息了。
哪怕空格也是信息,
往往造成的原因就是 你可能在某些文件上在 php体外部增加了空格,回车,什么的。
——解决方案——————–
更新一下用户密码 就可以了撒
SET PASSWORD FOr root@localhost = OLD_PASSWORD( '你的密码 ');