diff --git a/core-bundle/src/Doctrine/Schema/DcaSchemaProvider.php b/core-bundle/src/Doctrine/Schema/DcaSchemaProvider.php
index <HASH>..<HASH> 100644
--- a/core-bundle/src/Doctrine/Schema/DcaSchemaProvider.php
+++ b/core-bundle/src/Doctrine/Schema/DcaSchemaProvider.php
@@ -463,11 +463,12 @@ class DcaSchemaProvider
             ->fetch(\PDO::FETCH_OBJ)
         ;
 
-        if (\in_array(strtolower((string) $largePrefix->Value), ['1', 'on'], true)) {
+        // The variable no longer exists (as of MySQL 8 and MariaDB 10.3)
+        if (false === $largePrefix) {
             return 3072;
         }
 
-        return 767;
+        return \in_array(strtolower((string) $largePrefix->Value), ['1', 'on'], true) ? 3072 : 767;
     }
 
     /**
[Core] Handle the case that the innodb_large_prefix variable no longer exists (see contao/installation-bundle#<I>).