网上有很多关于bugzilla 在windows环境下安装的资料,但是也有部分不适合自已,走到某一步总会出现一些错误提示,我整整花了一周的时间才配置好,现将我的安装步骤写下来,希望对大家有些启发。
我的配置清单如下:Mysql 5.0 + ActivePerl 5.8.8 + IIS + Bugzilla-2.20.2+内置邮件服务器
具体安装步骤如下:
一、
装mysql 5.0
安装的时候很简单,默认方式下安装,一直按下一步就行了记住安装路径和设置的password,如果有问题可以到MySQL官方网站(http://dev.mysql.com/doc/)上查看在线手册。
1、 接下来要配置MySQL。有些文章里写道需要手工修改root用户的密码,其实这一步在MySQL安装程序里就已经完成了,因此不用再去设置。我们要新建一个Bug数据库和一个Bugzilla访问这个数据库的用户。操作如下:
C:/mysql/bin>
mysql --user=root -p mysql
Enter password:
********
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 15 to server version: 4.0.20a-debug
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql>
create database <database_name>;
Query OK, 1 row affected (0.11 sec)
mysql>
grant all privileges on <database_name>.* to '<user_name>'@'<server_name>' identified by '<password>';
Query OK, 0 rows affected (0.03 sec)
mysql>
flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql>
quit
Bye
C:/mysql/bin>
|
2、 退出,再次进入修改刚建的数据库密码:
C:/mysql/bin>
mysql --user=root -p mysql
Enter password:
********
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 15 to server version: 4.1.11-nt
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql>
set password for
'
<user_name>
'@'
<server_name>
'
=
OLD_PASSWORD
('
<password>
');
Query OK, 0 rows affected (0.00 sec)
mysql>
quit
Bye
C:/mysql/bin>
|
3、 OK!到此MYSQL已经安装配置完毕。