database.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkAdmin
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://demo.thinkadmin.top
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | gitee 开源项目:https://gitee.com/zoujingli/ThinkAdmin
  12. // | github开源项目:https://github.com/zoujingli/ThinkAdmin
  13. // +----------------------------------------------------------------------
  14. return [
  15. // 数据库调试模式
  16. 'debug' => true,
  17. // 数据库类型
  18. 'type' => 'mysql',
  19. // 服务器地址
  20. 'hostname' => '182.40.104.187',
  21. // 'hostname' => '127.0.0.1',
  22. // 数据库名
  23. 'database' => 'dingding_hdlkeji',
  24. // 用户名
  25. 'username' => 'dingding_hdlkeji',
  26. // 密码
  27. 'password' => 'b5NYW77btLPwZEij',
  28. // 编码
  29. 'charset' => 'utf8mb4',
  30. // 端口
  31. 'hostport' => '3306',
  32. // 主从
  33. 'deploy' => 0,
  34. // 分离
  35. 'rw_separate' => false,
  36. // 前缀
  37. 'prefix' => 'dd_',
  38. ];