database.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Database Connection Name
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you may specify which of the database connections below you wish
  9. | to use as your default connection for all database work. Of course
  10. | you may use many connections at once using the Database library.
  11. |
  12. */
  13. 'default' => env('DB_CONNECTION', 'mysql'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Database Connections
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here are each of the database connections setup for your application.
  20. | Of course, examples of configuring each database platform that is
  21. | supported by Laravel is shown below to make development simple.
  22. |
  23. |
  24. | All database work in Laravel is done through the PHP PDO facilities
  25. | so make sure you have the driver for your particular database of
  26. | choice installed on your machine before you begin development.
  27. |
  28. */
  29. 'connections' => [
  30. 'sqlite' => [
  31. 'driver' => 'sqlite',
  32. 'database' => env('DB_DATABASE', database_path('database.sqlite')),
  33. 'prefix' => '',
  34. ],
  35. 'mysql' => [
  36. 'driver' => 'mysql',
  37. 'host' => env('DB_HOST', '127.0.0.1'),
  38. 'port' => env('DB_PORT', '3306'),
  39. 'database' => env('DB_DATABASE', 'forge'),
  40. 'username' => env('DB_USERNAME', 'forge'),
  41. 'password' => env('DB_PASSWORD', ''),
  42. 'unix_socket' => env('DB_SOCKET', ''),
  43. 'charset' => 'utf8mb4',
  44. 'collation' => 'utf8mb4_unicode_ci',
  45. 'prefix' => '',
  46. 'strict' => false,
  47. 'engine' => null,
  48. ],
  49. 'douyin_recruit' => [
  50. 'driver' => 'mysql',
  51. 'host' => '127.0.0.1',
  52. 'port' => 3306,
  53. 'database' => 'douyin_recruit',
  54. 'username' => 'douyin_recruit',
  55. 'password' => '123456',
  56. /*'username' => 'root',
  57. 'password' => 'root',*/
  58. 'unix_socket' => '',
  59. 'charset' => 'utf8mb4',
  60. 'collation' => 'utf8mb4_unicode_ci',
  61. 'prefix' => '',
  62. 'strict' => false,
  63. 'engine' => null,
  64. ],
  65. 'fangyi' => [
  66. 'driver' => 'mysql',
  67. 'host' => env('DB_HOST', '127.0.0.1'),
  68. 'port' => 3306,
  69. 'database' => 'fangyi',
  70. 'username' => env('DB_USERNAME', 'forge'),
  71. 'password' => env('DB_PASSWORD', ''),
  72. /*'username' => 'root',
  73. 'password' => 'root',*/
  74. 'unix_socket' => '',
  75. 'charset' => 'utf8mb4',
  76. 'collation' => 'utf8mb4_unicode_ci',
  77. 'prefix' => '',
  78. 'strict' => false,
  79. 'engine' => null,
  80. ],
  81. 'transfer_center' => [
  82. 'driver' => 'mysql',
  83. 'host' => env('DB_HOST_CENTER', 'localhost'),
  84. 'port' => env('DB_PORT_CENTER', '3306'),
  85. 'database' => env('DB_DATABASE_CENTER', 'forge'),
  86. 'username' => env('DB_USERNAME_CENTER', 'forge'),
  87. 'password' => env('DB_PASSWORD_CENTER', ''),
  88. 'charset' => 'utf8',
  89. 'collation' => 'utf8_unicode_ci',
  90. 'prefix' => '',
  91. 'strict' => false,
  92. 'engine' => null,
  93. ],
  94. 'pgsql' => [
  95. 'driver' => 'pgsql',
  96. 'host' => env('DB_HOST', '127.0.0.1'),
  97. 'port' => env('DB_PORT', '5432'),
  98. 'database' => env('DB_DATABASE', 'forge'),
  99. 'username' => env('DB_USERNAME', 'forge'),
  100. 'password' => env('DB_PASSWORD', ''),
  101. 'charset' => 'utf8',
  102. 'prefix' => '',
  103. 'schema' => 'public',
  104. 'sslmode' => 'prefer',
  105. ],
  106. 'sqlsrv' => [
  107. 'driver' => 'sqlsrv',
  108. 'host' => env('DB_HOST', 'localhost'),
  109. 'port' => env('DB_PORT', '1433'),
  110. 'database' => env('DB_DATABASE', 'forge'),
  111. 'username' => env('DB_USERNAME', 'forge'),
  112. 'password' => env('DB_PASSWORD', ''),
  113. 'charset' => 'utf8',
  114. 'prefix' => '',
  115. ],
  116. ],
  117. /*
  118. |--------------------------------------------------------------------------
  119. | Migration Repository Table
  120. |--------------------------------------------------------------------------
  121. |
  122. | This table keeps track of all the migrations that have already run for
  123. | your application. Using this information, we can determine which of
  124. | the migrations on disk haven't actually been run in the database.
  125. |
  126. */
  127. 'migrations' => 'migrations',
  128. /*
  129. |--------------------------------------------------------------------------
  130. | Redis Databases
  131. |--------------------------------------------------------------------------
  132. |
  133. | Redis is an open source, fast, and advanced key-value store that also
  134. | provides a richer set of commands than a typical key-value systems
  135. | such as APC or Memcached. Laravel makes it easy to dig right in.
  136. |
  137. */
  138. 'redis' => [
  139. 'client' => 'predis',
  140. 'default' => [
  141. 'host' => env('REDIS_HOST', '127.0.0.1'),
  142. 'password' => env('REDIS_PASSWORD', null),
  143. 'port' => env('REDIS_PORT', 6379),
  144. 'database' => 0,
  145. ],
  146. ],
  147. ];