Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hasen39's avatar

Database Connection error in shared host company

i get this error when i deploy laravel on shared host

SQLSTATE[HY000] [2059] Plugin https could not be loaded: /usr/lib64/mysql/plugin/https.so: cannot open shared object file: No such file or directory (SQL: select count(*) as aggregate from `users` where `status` = 2)
0 likes
3 replies
ahmeddabak's avatar
Level 47

in your database connection settings .env file, check the DB_HOST it should be a host name or an ip address without https or any other prefix in it.

for example:

127.0.0.1

localhost

domain.com
1 like

Please or to participate in this conversation.