安装配置好了phpstudy集成环境,下面来配置mantis:
1. 将mantis解压到/phpstudy/www目录下;
2. 生成:mantis配置文件:
cd /phpstudy/www/mantis/config
cp config_inc.php.sample config_inc.php
3. 生成数据库;
http://192.168.5.201/mantis/admin/install.php
这里有几个安装出现的问题:
(1) No such file or directory
Attempting to connect to database as admin | BAD Does administrative user have access to the database? ( No such file or directory ) |
解决方法:将localhost换成具体的IP地址。
(2) Access denied for user 'root'@'localhost'(using password:YES)
Attempting to connect to database as admin | BAD Does administrative user have access to the database? Access denied for user 'root'@'localhost' (using password:YES) |
解决方法:
[root@LUZ:/]>mysql -u root -p
(我这里的密码是root)
mysql>select user,host from user;
Error 1046(3D000):No database selected
mysql>use mysql
Database changed
mysql>select user,host from user;
(这里相关信息列表)
mysql>grant all privileges on *.* to 'root'@'LUZ' identified by 'root' with grant option;(说明:红色root为密码)
Query OK,...
mysql>flush privileges;
Query OK,...
到此已经配置完成!