diff --git a/src/Generators/Webserver/Database/Drivers/MariaDB.php b/src/Generators/Webserver/Database/Drivers/MariaDB.php
index <HASH>..<HASH> 100644
--- a/src/Generators/Webserver/Database/Drivers/MariaDB.php
+++ b/src/Generators/Webserver/Database/Drivers/MariaDB.php
@@ -109,8 +109,13 @@ class MariaDB implements DatabaseGenerator
 
     public function updatePassword(Website $website, array $config, Connection $connection): bool
     {
+        $existing = $connection->configuration();
+
+        if ($existing['uuid'] === $website->uuid) {
+            $connection->purge();
+        }
+
         $user = function (IlluminateConnection $connection) use ($config) {
-            $connection->reconnect();
             return $connection->statement("ALTER USER `{$config['username']}`@'{$config['host']}' IDENTIFIED BY '{$config['password']}'");
         };
try the radical approach of resetting the connection