- Posts: 1
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
if ($this->isMysql && $this->dbengine === self::ENGINE_TYPE_INNODB) { if (!$this->isInnoDbLargeFilePrefixEnabled()) { $this->addError($attribute, gT('You need to enable large_file_prefix setting in your database configuration in order to use InnoDB engine for LimeSurvey!')); } if (!$this->isInnoDbBarracudaFileFormat()) { $this->addError($attribute, gT('Your database configuration needs to have innodb_file_format and innodb_file_format_max set to use the Barracuda format in order to use InnoDB engine for LimeSurvey!')); } }
if ($this->isMysql && $this->dbengine === self::ENGINE_TYPE_INNODB) { #if (!$this->isInnoDbLargeFilePrefixEnabled()) { # $this->addError($attribute, gT('You need to enable large_file_prefix setting in your database configuration in order to use InnoDB engine for LimeSurvey!')); #} #if (!$this->isInnoDbBarracudaFileFormat()) { # $this->addError($attribute, gT('Your database configuration needs to have innodb_file_format and innodb_file_format_max set to use the Barracuda format in order to use InnoDB engine for LimeSurvey!')); #} $nothing = "Nothing"; }
private function getMysqlDsn() { $port = $this->getDbPort(); // MySQL allow unix_socket for database location, then test if $sDatabaseLocation start with "/" if (substr($this->dblocation, 0, 1) == "/") { $sDSN = "mysql:unix_socket={$this->dblocation}"; } else { $sDSN = "mysql:host={$this->dblocation};port={$port};"; } if ($this->useDbName) { $sDSN .= "dbname={$this->dbname};"; } return $sDSN; }
private function getMysqlDsn() { $port = $this->getDbPort(); $host = $this->getHost(); // MySQL allow unix_socket for database location, then test if $sDatabaseLocation start with "/" if (substr($this->dblocation, 0, 1) == "/") { $sDSN = "mysql:unix_socket={$this->dblocation}"; } else { $sDSN = "mysql:host={$host};port={$port};"; } if ($this->useDbName) { $sDSN .= "dbname={$this->dbname};"; } return $sDSN; }
/** * Get the host * @return string */ public function getHost() { if (strpos($this->dblocation, ':') !== false) { $pieces = explode(':', $this->dblocation, 2); if (isset($pieces[1]) && is_numeric($pieces[1])) { return $pieces[0]; } } return $this->dblocation; }
/umfrage/index.php?r=installer/database Database creation Database doesn't exist! The database you specified does not exist: LimeSurvey can attempt to create this database for you.
/survey/index.php?r=installer/database Database configuration Please enter the database settings you want to use for LimeSurvey: Please fix the following errors: Try again! Connection with database failed. Reason: SQLSTATE[HY000] [2002] No such file or directory
/umfrage/index.php?r=installer/database Database creation Database doesn't exist! The database you specified does not exist: LimeSurvey can attempt to create this database for you.
/survey/index.php?r=installer/database Database configuration Please enter the database settings you want to use for LimeSurvey: Please fix the following errors: Try again! Connection with database failed. Reason: SQLSTATE[HY000] [2002] No such file or directory
PDO support enabled PDO drivers sqlite, mysql
PDO Driver for MySQL enabled
Client API version mysqlnd 7.4.11