关于youbbs安装
我下载了youbbs-v1.04-vps.zip 传到VPS上后 输入
http://www.xxx.com/install.php
出现
数据库出错:
Can not connect to MySQL server
Mysql error description: Access denied for user 'root'@'localhost' (using password: YES)
Mysql error number: 1045
Date: 2013-02-23 @ 12:30
Script: http://www.xxx.com
如何解决
可以 了,不过又出现Parse error: syntax error, unexpected T_LNUMBER in C:\Inetpub\wwwroot\new\config.php on line 17
<?php
/**
*程序官方支持社区 https://www.youbbs.org/
*欢迎交流!
*youBBS是开源项目,可自由修改,但要保留Powered by 链接信息
*/
//数据库主机名或IP
$servername = 'localhost';
//数据库用户名
$dbusername = 'xxaa';
//数据库密码
$dbpassword = '123456';
//数据库名
$dbname = 'name1;
//数据端口
$dbport = '3389';
//MySQL字符集
$dbcharset = 'utf8';
//系统默认字符集
$charset = 'utf-8';
?>
刷新 http://www.xxx.com/install.php 9 又出现 Can not connect to MySQL server Mysql error description: Lost connection to MySQL server during query Mysql error number: 2013 Date: 2013-02-23 @ 14:22 Script: http://www.xxx.com 1
又出现 Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\youbbs\config.php:1) in C:\Inetpub\wwwroot\youbbs\common.php on line 78 no php script
而我找到COMMON.PHP 78行是 header('location: /404.html');
<?php
/**
*程序官方支持社区 https://www.youbbs.org/
*欢迎交流!
*youBBS是开源项目,可自由修改,但要保留Powered by 链接信息
*/
//数据库主机名或IP
$servername = 'localhost';
//数据库用户名
$dbusername = 'name2';
//数据库密码
$dbpassword = '12346';
//数据库名
$dbname = 'name1';
//数据端口
$dbport = '3306';
//MySQL字符集
$dbcharset = 'utf8';
//系统默认字符集
$charset = 'utf-8';
?>