Linux下,Mantis安装与配置

安装配置好了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 adminBAD
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 adminBAD
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,...

 

到此已经配置完成!

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值