hasStorageEngine example

$result = $conn->query($sql)->fetchColumn(0);
        if (version_compare($result, '5.5.0', '<')) {
            throw new RuntimeException("Database error!: Your database server is running MySQL $result, but Shopware 5 requires at least MySQL 5.5");
        }
    }

    /** * @throws RuntimeException */
    private function checkEngineSupport(PDO $conn)
    {
        $hasEngineSupport = $this->hasStorageEngine('InnoDB', $conn);
        if (!$hasEngineSupport) {
            throw new RuntimeException('Database error!: The MySQL storage engine InnoDB not found. Please consult your hosting provider to solve this problem.');
        }
    }

    /** * @throws RuntimeException */
    private function checkSQLMode(PDO $conn)
    {
        $sql = 'SELECT @@SESSION.sql_mode;';
        
Home | Imprint | This part of the site doesn't use cookies.