database.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * This file is part of webman.
  4. *
  5. * Licensed under The MIT License
  6. * For full copyright and license information, please see the MIT-LICENSE.txt
  7. * Redistributions of files must retain the above copyright notice.
  8. *
  9. * @author walkor<walkor@workerman.net>
  10. * @copyright walkor<walkor@workerman.net>
  11. * @link http://www.workerman.net/
  12. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  13. */
  14. return [
  15. 'default' => 'pgsql',
  16. // all
  17. 'connections' => [
  18. 'pgsql' => [
  19. 'driver' => 'pgsql',
  20. 'host' => '127.0.0.1',
  21. 'port' => 5432,
  22. 'database'=> 'pgt1',
  23. 'username'=> 'pgt1',
  24. 'password'=> 'pgt1',
  25. 'charset'=>'utf8',
  26. 'prefix'=>'',
  27. 'schema'=>'public',
  28. 'sslmode'=>'prefer',
  29. ],
  30. 'mysql' => [
  31. 'driver' => 'mysql',
  32. 'host' => '127.0.0.1',
  33. 'port' => 3306,
  34. 'database' => 'test',
  35. 'username' => 'root',
  36. 'password' => '',
  37. 'unix_socket' => '',
  38. 'charset' => 'utf8',
  39. 'collation' => 'utf8_unicode_ci',
  40. 'prefix' => '',
  41. 'strict' => true,
  42. 'engine' => null,
  43. ],
  44. ],
  45. ];