Are you sure you installed GridDB correctly on your operating system?
Make sure you have installed the GridDB driver for PHP and activated the plugin.
Just check installation steps on:https://docs.griddb.net/gettingstarted/using-apt/#install-with-apt-get