I’ve looked in vain for a definitive answer to this, but there doesn’t seem to be one. I’ve installed a LAMP stack on a fresh build of xubuntu 24.04 with php8.3 which I use mostly from a shell. phpinfo() claims that pdo_mysql is loaded:
PDO
PDO support => enabled
PDO drivers => mysqlpdo_mysql
PDO Driver for MySQL => enabled
Client API version => mysqlnd 8.3.6Directive => Local Value => Master Value
pdo_mysql.default_socket => /var/run/mysqld/mysqld.sock => /var/run/mysqld/mysqld.sock
but ->prepare() statements fail. Trying to load the extension from php.ini results in
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_mysql’ (tried: /usr/lib/php/20230831/pdo_mysql
despite the fact that ls shows the file is there in both cases. Anybody know what gives?