#Laravel Project missing SQL driver

25 messages · Page 1 of 1 (latest)

slate nova
#

Hey I have a Laravel project made by an ex staff member of ours that we’re trying to host but whenever we boot it we get an error saying it can’t find the SQL driver. We’ve tried installing it fresh, checking the php.ini file, updating php and nothing is working. Any help would be hugely appreciated (I’m not really a php pro, just trying to salvage a project we really need from an ex staff member lol)

#

I put the wrong tag sob

thick gull
#

You should share the exact error.

#

But odds are you need to enable the php extension.

slate nova
#

This is the error

thick gull
#

I don't really know your environment.

#

Is it ubuntu server?

#

Or a local dev environment?

#

Windows? Mac? What stack?

slate nova
#

The main server is debian, it’s hosted on a pterodactyl panel using a php egg

thick gull
#

I don't know what apterodactly panel or php egg is, tbh. But for a debian server it should be as simple as sudo apt-get install php-mysql and then reloading your apache/nginx.

slate nova
#

Hm i've done that an had no luck

#

btw pterodactyl is https://pterodactyl.io/ its basically like splitting your server off into however many different servers

thick gull
#

Maybe restart your PHP as well.

#

Check your phpinfo() and confirm the extension is installed.

slate nova
#

Yep the extension is installed

#

well thats what im assuming

mysqlnd => enabled
Version => mysqlnd 8.1.1``` means
thick gull
#

There should be a section with extensions.

outer root
#

@slate nova What SQL are we talking about?

#

MySQL? PostgreSQL? MSSQL?

slate nova
#

MySQL

outer root
#

Replace your stack and versions and make a similar search on site:digitalocean.com