2023拉

Windows 7 下安装BugFree2.1.2与异常处理

上一篇 / 下一篇  2012-03-10 16:11:25 / 个人分类:测试管理工具

Windows 7 下安装BugFree2.1.2  (xampp-win32-1.7.3)

1:安装xampp-win32-1.7.3 选择磁盘空间较大的盘符
2:如果Apache的端口不需要改的话(在apache的conf目录下的httpd文件,修改Listen 与 ServerName localhost并保存),在XAMPP注册服务并开启所有的服务。
3:把bugfree拷贝到htdocs目录下
4:浏览http://192.168.0.9:8080/bugfree/install.php(提示:File 'Include/Config.inc.php' cannot be found,配置\bugfree\Include中的Config.inc.Sample.php 配置完后把文件名改为  Config.inc.php  保存)并重新浏览,安装完成。

===================================================================================
D:\usr\www\bugfree\Include中的Config.inc.Sample.php

                error_reporting(E_ALL ^ E_NOTICE);

                $BugConfig["ScriptDir"] = "D:\usr\www\bugfree";
                $_CFG['LangList']['EN_UTF-8']    = 'English UTF-8';
                $_CFG['LangList']['ZH_CN_UTF-8'] = 'ZH_CN UTF-8';
                $_CFG['DefaultLang']             = 'ZH_CN_UTF-8';

                /*2. Define admin user list. Like this: array('admin','yourloginname') */
                $_CFG['AdminUser'] = array('admin');

                /* Define report user list. Like this: array('admin','someone@example.com');*/
                $_CFG['MailReportUser'] = array('');

                /* 3. Define the username and password of the BugFree database. */

                $_CFG['DB']['User']        = 'root';
                $_CFG['DB']['Password']    = 'xxmi.com';
                $_CFG['DB']['Host']        = 'localhost';
                $_CFG['DB']['Database']    = 'bugfree';
                $_CFG['DB']['TablePrefix'] = 'bf_';
                $_CFG['DBCharset']         = 'UTF8';

bugfree 安装 错误 解决方法
----------------------------------------------------------------
****************************************************************
ERROR OCCUR TO /bugfree/install.php:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''TYPE=MyISAM DEFAULT


CHARSET=UTF8'' at line 54
****************************************************************

解决方法一:
使用 XAMPP 1.7.3 + BugFree2.1.2 安装成功


解决方法二:
安装的时候出现错误,phpcms near 'TYPE=MyISAM DEFAULT CHARSET=utf8' at line 1
mysql版本的问题?


TYPE=MyISAM 和 ENGINE=MyISAM 都是设置数据库存储引擎的语句
(老版本的MySQL使用TYPE而不是ENGINE(例如,TYPE = MYISAM)。
MySQL 5.1为向下兼容而支持这个语法,但TYPE现在被轻视,而ENGINE是首先的用法。
一般地,ENGINE 选项是不必要的;除非默认已经被改变了,MyISAM是默认存储引擎。


查到上面的信息,我的数据库是mysql5.5.8,把TYPE改成ENGINE 就ok了。

**********************************************************************************
出现Call-time pass-by-reference has been deprecated
**********************************************************************************
Warning: Call-time pass-by-reference has been deprecated;
解决方法:
修改php.ini就可以了。
1. 搜索: allow_call_time_pass_reference
2. 將 Off 改成 On ,Web Server重起就OK了~

 

Access denied for user'root'@'localhost'(using password: NO)的解决办法


在windows下 1045 access denied for user'root'@'localhost'using password yes 解决办法时间:2009-11-24 22:54:30来源:网络 作者:未知 点击:2495次
在windows下的解决办法如下:
在windows下的解决办法如下:

    1.net stop mysql 停用服务

    2.修改${mysql_home}/MySQL Server 5.1目录下的my.ini文件

          [mysqld]下面添加这句:
              skip_grant_tables

    3.把你的${mysql_home}\bin目录加入path路径里边

    4.net start mysql 启动mysql服务

    5.mysql -uroot -p
       Enter password:root

    6.mysql>UPDATE user SET Password=PASSWORD('root') where USER='root';
       mysql>FLUSH PRIVILEGES;
       mysql>exit

    7.删除my.ini中的这句话:skip_grant_tables
       net stop mysql
       net start mysql

       8.可以登录了

       mysql -uroot -proot
       mysql>
 


TAG:

 

评分:0

我来说两句

Open Toolbar