Can't make MariaDB connection on remote server

Below is the MariaDB server profile of my XAMPP-localhost setup. Everything works fine.

Server: 127.0.0.1 via TCP/IP
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.4.16-MariaDB - mariadb.org binary distribution
Protocol version: 10

I have MariaDB Server version 10.3.6 on my remote server with inmotionhosting.
Somehow, when I set up a remote connection to this server, I am unable to connect to it. I get the error
below.

Error using this database connection!
Server Response: SQLSTATE[HY000][2006] MySQL Server has gone away.

INMOTION SERVER
Server: Localhost via UNIX socket
Server type: MariaDB
Server connection: SSL is not being used Documentation
Server version: 10.3.27-MariaDB - MariaDB Server
Protocol version: 10

I have whitelisted my IP on the remote server as required.
I specifically require MariaDB 10.3 upwards because of some window functions I use in queries. I am able to connect remotely to this same inmotion server with Navicat and MySQL workbench without issue.

Any Idea what could be happening and why I am unable to connect from wappler?

Community Page
Last updated: