Page 1 of 1

Unable to load dynamic library 'pdo_mysql': undefined symbol

Posted: Mon Sep 28, 2020 11:57 pm
by FlorisVidda
Hi everyone,

After installing PHP on my Ubuntu machine and activating the `pdo_mysql` plugin, I'm getting this error:

Code: Select all

$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20170718/pdo_mysql (/usr/lib/php/20170718/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/ (/usr/lib/php/20170718/ undefined symbol: mysqlnd_allocator)) in Unknown on line 0
PHP (cli) (built: Aug  7 2020 14:44:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache, Copyright (c) 1999-2018, by Zend Technologies
I'm running Ubuntu 18.04 and below you can find the PHP packages I installed:

Code: Select all

php7.2/bionic,bionic,now all [installed]
php7.2-cli/bionic,now amd64 [installed,automatic]
php7.2-common/bionic,now amd64 [installed,automatic]
php7.2-curl/bionic,now amd64 [installed]
php7.2-gd/bionic,now amd64 [installed]
php7.2-json/bionic,now amd64 [installed,automatic]
php7.2-mbstring/bionic,now amd64 [installed]
php7.2-mysql/bionic,now amd64 [installed]
php7.2-opcache/bionic,now amd64 [installed,automatic]
php7.2-pgsql/bionic,now amd64 [installed]
php7.2-readline/bionic,now amd64 [installed,automatic]
php7.2-xml/bionic,now amd64 [installed]