As it turned out, it was a simple configuration issue in database.php.
Just modified the DB_CONNECTION_TIMEOUT to change the wait timing.
Thanks anyway.