ユーザ用ツール

サイト用ツール


linux:limesurvey:limesurvey

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

最新のリビジョン両方とも次のリビジョン
linux:limesurvey:limesurvey [2020/08/17 13:45] – 作成 Wiki Editorlinux:limesurvey:limesurvey [2020/08/17 13:46] Wiki Editor
行 29: 行 29:
  
     private function getMysqlDsn() {     private function getMysqlDsn() {
 +    
         $port = $this->getDbPort();         $port = $this->getDbPort();
 +        
         // MySQL allow unix_socket for database location, then test if $sDatabaseLocation start with "/"         // MySQL allow unix_socket for database location, then test if $sDatabaseLocation start with "/"
         if (substr($this->dblocation, 0, 1) == "/") {         if (substr($this->dblocation, 0, 1) == "/") {
行 38: 行 38:
             $sDSN = "mysql:host={$this->dblocation};port={$port};";             $sDSN = "mysql:host={$this->dblocation};port={$port};";
         }         }
 +        
         if ($this->useDbName) {         if ($this->useDbName) {
             $sDSN .= "dbname={$this->dbname};";             $sDSN .= "dbname={$this->dbname};";

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki