Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
鹿
鹿马108官网
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
鹿马108官网
Commits
f218a791
Commit
f218a791
authored
Mar 15, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
ce67e9f8
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
355 additions
and
0 deletions
+355
-0
application/config.php
application/config.php
+299
-0
application/database.php
application/database.php
+56
-0
public/uploads/20210315/58f9cfaebdaf08c968f333dfb26f7c88.png
public/uploads/20210315/58f9cfaebdaf08c968f333dfb26f7c88.png
+0
-0
public/uploads/20210315/e59d3764646fac2fb6893b61a305742c.png
public/uploads/20210315/e59d3764646fac2fb6893b61a305742c.png
+0
-0
No files found.
application/config.php
0 → 100644
View file @
f218a791
This diff is collapsed.
Click to expand it.
application/database.php
0 → 100644
View file @
f218a791
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use
think\Env
;
return
[
// 数据库类型
'type'
=>
Env
::
get
(
'database.type'
,
'mysql'
),
// 服务器地址
'hostname'
=>
Env
::
get
(
'database.hostname'
,
'127.0.0.1'
),
// 数据库名
'database'
=>
Env
::
get
(
'database.database'
,
'luma_website'
),
// 用户名
'username'
=>
Env
::
get
(
'database.username'
,
'root'
),
// 密码
'password'
=>
Env
::
get
(
'database.password'
,
'root'
),
// 端口
'hostport'
=>
Env
::
get
(
'database.hostport'
,
''
),
// 连接dsn
'dsn'
=>
''
,
// 数据库连接参数
'params'
=>
[],
// 数据库编码默认采用 utf8mb4
'charset'
=>
Env
::
get
(
'database.charset'
,
'utf8mb4'
),
// 数据库表前缀
'prefix'
=>
Env
::
get
(
'database.prefix'
,
'fa_'
),
// 数据库调试模式
'debug'
=>
Env
::
get
(
'database.debug'
,
false
),
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy'
=>
0
,
// 数据库读写是否分离 主从式有效
'rw_separate'
=>
false
,
// 读写分离后 主服务器数量
'master_num'
=>
1
,
// 指定从服务器序号
'slave_no'
=>
''
,
// 是否严格检查字段是否存在
'fields_strict'
=>
true
,
// 数据集返回类型
'resultset_type'
=>
'array'
,
// 自动写入时间戳字段
'auto_timestamp'
=>
false
,
// 时间字段取出后的默认时间格式,默认为Y-m-d H:i:s
'datetime_format'
=>
false
,
// 是否需要进行SQL性能分析
'sql_explain'
=>
false
,
];
public/uploads/20210315/58f9cfaebdaf08c968f333dfb26f7c88.png
0 → 100644
View file @
f218a791
141 KB
public/uploads/20210315/e59d3764646fac2fb6893b61a305742c.png
0 → 100644
View file @
f218a791
53.9 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment