1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkPHP [ WE CAN DO IT JUST THINK ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
- // +----------------------------------------------------------------------
- // | Author: liu21st <liu21st@gmail.com>
- // +----------------------------------------------------------------------
- /**
- * 配置文件
- */
- return [
- // 数据库类型
- 'type' => 'sqlsrv',
- // 服务器地址
- 'hostname' => 'localhost',
- // 数据库名
- 'database' => 'first',
- // 用户名
- 'username' => 'sa',
- // 密码
- 'password' => 'dream1008',//密码
- // 端口
- 'hostport' => '1433',
- // 数据库编码默认采用utf8
- 'charset' => 'utf8',
- /* 'dsn' => 'odbc:Driver={SQL Server};Server=wuhanxindian.vicp.net;Database=bypass_cable', */
- // 数据库表前缀
- 'prefix' => '',
- "authcode" => '5PYFjWzx0YXjvJpa0q',
- //#COOKIE_PREFIX#
- // 自动写入时间戳字段
- 'auto_timestamp' => true
- ];
|