-
Notifications
You must be signed in to change notification settings - Fork 0
MantisBT
HOW_Dell edited this page Jun 11, 2021
·
3 revisions
[TOC]
看教學吧
https://www.tutorialspoint.com/mantis/mantis_installation.htm

看起來問題是出在這個數值max_allowed_packet設定太小了
但不論我翻遍Mantis的說明文件就是找不到這個東西參數在哪裡
後來發現這其實是MySQL的坑....

這個配置檔的位置在
xampp\mysql\bin\my.ini
裡面有兩個max_allowed_packet 要修改的是 [mysqld]裡面的

我先改成50M記得重啟 MySQL

https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html/admin.config.uploads.html
可以調整這個數值

他位在
xampp\htdocs\mantis\config\config_inc.php

例如我修改成 10MB

https://neohsuxoops.blogspot.com/2017/10/xamppmysqlphpmyadmin.html
預設的配置其實是很不安全的,只要點擊phpMyAdmin就可以連到後台修改配置。


所以會需要這樣修改




當改道當前登入時會強制登出變成這樣的畫面

接下來要直接改動phpMyAdmin的配置檔

修改Authentication type and info的配置

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // 修改
$cfg['Servers'][$i]['user'] = ''; // 修改
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false; // 修改
$cfg['Lang'] = '';這樣系統就會要求輸入帳號密碼了

記得要檢查從各種不統的網域連進來都要設定root密碼

離開時記得登出

維護 xampp\htdocs\mantis\config\config_inc.php $g_db_password 參數即可
