database.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: liu21st <liu21st@gmail.com>
  10. // +----------------------------------------------------------------------
  11. /**
  12. * 配置文件
  13. */
  14. return [
  15. // 数据库类型
  16. 'type' => 'sqlsrv',
  17. // 服务器地址
  18. 'hostname' => 'localhost',
  19. // 数据库名
  20. 'database' => 'first',
  21. // 用户名
  22. 'username' => 'sa',
  23. // 密码
  24. 'password' => 'dream1008',//密码
  25. // 端口
  26. 'hostport' => '1433',
  27. // 数据库编码默认采用utf8
  28. 'charset' => 'utf8',
  29. /* 'dsn' => 'odbc:Driver={SQL Server};Server=wuhanxindian.vicp.net;Database=bypass_cable', */
  30. // 数据库表前缀
  31. 'prefix' => '',
  32. "authcode" => '5PYFjWzx0YXjvJpa0q',
  33. //#COOKIE_PREFIX#
  34. // 自动写入时间戳字段
  35. 'auto_timestamp' => true
  36. ];