diff --git a/src/Mysql/MysqlDriver.php b/src/Mysql/MysqlDriver.php
index <HASH>..<HASH> 100644
--- a/src/Mysql/MysqlDriver.php
+++ b/src/Mysql/MysqlDriver.php
@@ -479,6 +479,8 @@ class MysqlDriver extends PdoDriver implements UTF8MB4SupportInterface
 	 */
 	public function isMariaDb()
 	{
+		$this->connect();
+
 		return $this->mariadb;
 	}
 
diff --git a/src/Mysqli/MysqliDriver.php b/src/Mysqli/MysqliDriver.php
index <HASH>..<HASH> 100644
--- a/src/Mysqli/MysqliDriver.php
+++ b/src/Mysqli/MysqliDriver.php
@@ -589,6 +589,8 @@ class MysqliDriver extends DatabaseDriver implements UTF8MB4SupportInterface
 	 */
 	public function isMariaDb()
 	{
+		$this->connect();
+
 		return $this->mariadb;
 	}
Add connect to isMariaDB functions.