diff --git a/src/Slick/Database/Adapter/MysqlAdapter.php b/src/Slick/Database/Adapter/MysqlAdapter.php
index <HASH>..<HASH> 100644
--- a/src/Slick/Database/Adapter/MysqlAdapter.php
+++ b/src/Slick/Database/Adapter/MysqlAdapter.php
@@ -83,7 +83,7 @@ class MysqlAdapter extends AbstractAdapter implements AdapterInterface
                 $dsn,
                 $this->_username,
                 $this->_password,
-                [PDO::ERRMODE_EXCEPTION]
+                [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
             );
             $this->_connected = true;
         } catch (\Exception $exp) {
Fixing the PDO exceptions mode