搭建一个环境 lamp for win2003 安装youbbs 报错

By ddkxiaobai at 2015-12-03 16:01:35 • 362次点击

在虚拟机中搭建环境 lamp 测试 youbbs

发现报错 无法安装

( ! ) Notice: Undefined variable: dbpassword in D:wampappsyoubbscommon.php on line 21
Call Stack
# Time Memory Function Location
1 0.0156 150416 {main}( ) ..index.php:0
2 0.0156 218152 include( 'D:wampappsyoubbscommon.php' ) ..index.php:6

( ! ) Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO) in D:wampappsyoubbsincludemysql.class.php on line 11
Call Stack
# Time Memory Function Location
1 0.0156 150416 {main}( ) ..index.php:0
2 0.0156 218152 include( 'D:wampappsyoubbscommon.php' ) ..index.php:6
3 0.0312 241304 DB_MySQL->connect( ) ..common.php:21
4 0.0312 241408 mysqli_connect ( ) ..mysql.class.php:11
MySQL Database error:

Failed to connect to MySQL: Access denied for user 'root'@'localhost' (using password: NO)
Mysql error description: Access denied for user 'root'@'localhost' (using password: NO)

Mysql error number: 1045

Date: 2015-12-03 @ 07:59

Script: http://localhost/youbbs/

已经添加 apache 的rewrite

filter 模块

config.php

mysql 用户名

数据库 密码

都设置正确

请求站长回复

qq:tuzuoyouxi@qq.com

环境, lamp, for, win, youbbs


dbpassword in D:wampappsyoubbscommon.php on line 21

youbbs at 2015-12-04 16:03:49
1

@youbbs 按照提示修改了

但是还有一个错误 不知道如何修改

( ! ) Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, string given in D:wampappsYouBBSincludemysql.class.php on line 80
Call Stack
# Time Memory Function Location
1 0.0000 150800 {main}( ) ..index.php:0
2 0.0000 218864 include( 'D:wampappsYouBBScommon.php' ) ..index.php:6
3 0.0156 283656 include( 'D:wampappsYouBBSmodel.php' ) ..common.php:72
4 0.0156 289592 DB_MySQL->free_result( ) ..model.php:33
5 0.0156 289640 mysqli_free_result ( ) ..mysql.class.php:80

ddkxiaobai at 2015-12-04 17:12:27
2
youbbs at 2015-12-04 20:17:14
3
登录 后发表评论