edwagbb commited on
Commit
eb62e17
1 Parent(s): d20961a

Update config.inc.php

Browse files
Files changed (1) hide show
  1. config.inc.php +1 -1
config.inc.php CHANGED
@@ -17,7 +17,7 @@ require_once __TYPECHO_ROOT_DIR__ . '/var/Typecho/Common.php';
17
  // init
18
  \Typecho\Common::init();
19
 
20
- //'mysql://user:[email protected]:3306/dbname'
21
  if(!getenv('DB_HOST')){
22
  $matches = [];
23
  preg_match("/^(mysql:\/\/)?([^:]*?):(.*?)@([^@^:]*?):?(\d+)?$/", getenv('DB_COON_STR'), $matches);
 
17
  // init
18
  \Typecho\Common::init();
19
 
20
+ //DB_COON_STR = 'mysql://user:[email protected]:3306/dbname'
21
  if(!getenv('DB_HOST')){
22
  $matches = [];
23
  preg_match("/^(mysql:\/\/)?([^:]*?):(.*?)@([^@^:]*?):?(\d+)?$/", getenv('DB_COON_STR'), $matches);