Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
8d9785db
Commit
8d9785db
authored
Oct 26, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭调试模式
parent
d32211c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
3 deletions
+65
-3
database.php
application/database.php
+6
-3
database.php
public/database.php
+59
-0
No files found.
application/database.php
View file @
8d9785db
...
@@ -13,15 +13,18 @@ return [
...
@@ -13,15 +13,18 @@ return [
// 数据库类型
// 数据库类型
'type'
=>
'mysql'
,
'type'
=>
'mysql'
,
// 服务器地址
// 服务器地址
'hostname'
=>
'47.100.51.167'
,
'hostname'
=>
'106.15.189.146'
,
// 'hostname' => '127.0.0.1',
// 数据库名
// 数据库名
'database'
=>
'db_tongliandichan'
,
'database'
=>
'db_tongliandichan'
,
// 用户名
// 用户名
'username'
=>
'tldc_online'
,
'username'
=>
'tldc_online'
,
// 'username' => 'root',
// 密码
// 密码
'password'
=>
'FujuhaofangrootTljt'
,
'password'
=>
'Tljt8workstroot'
,
// 'password' => '123456',
// 端口
// 端口
'hostport'
=>
'330
7
'
,
'hostport'
=>
'330
8
'
,
//'hostport' => '',
//'hostport' => '',
...
...
public/database.php
0 → 100755
View file @
8d9785db
<?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>
// +----------------------------------------------------------------------
return
[
// 数据库类型
'type'
=>
'mysql'
,
// 服务器地址
'hostname'
=>
'106.15.189.146'
,
// 'hostname' => '127.0.0.1',
// 数据库名
'database'
=>
'db_tongliandichan'
,
// 用户名
'username'
=>
'tldc_online'
,
// 'username' => 'root',
// 密码
'password'
=>
'Tljt8workstroot'
,
// 'password' => '123456',
// 端口
'hostport'
=>
'3308'
,
//'hostport' => '',
// 连接dsn
'dsn'
=>
''
,
// 数据库连接参数
'params'
=>
[],
// 数据库编码默认采用utf8
'charset'
=>
'utf8'
,
// 数据库表前缀
'prefix'
=>
''
,
// 数据库调试模式
'debug'
=>
true
,
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy'
=>
0
,
// 数据库读写是否分离 主从式有效
'rw_separate'
=>
false
,
// 读写分离后 主服务器数量
'master_num'
=>
1
,
// 指定从服务器序号
'slave_no'
=>
''
,
// 是否严格检查字段是否存在
'fields_strict'
=>
true
,
// 数据集返回类型
'resultset_type'
=>
'array'
,
// 自动写入时间戳字段
'auto_timestamp'
=>
false
,
// 时间字段取出后的默认时间格式
'datetime_format'
=>
false
,
// 是否需要进行SQL性能分析
'sql_explain'
=>
false
,
];
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