After Update 5.1.2 - The mysql driver is not currently installed

Hello forum,
after updating from 5.1.1 to 5.1.2 and executing php /var/www/vhosts/httpdocs/matomo/console core:update I get the error:

ERROR [2024-09-28 07:31:27] 431575 Uncaught exception: /var/www/vhosts/httpdocs/matomo/libs/Zend/Db/Adapter/Pdo/Abstract.php(112): The mysql driver is not currently installed [Query: , CLI mode: 1]

In Abstract.php line 112:

The mysql driver is not currently installed

core:update [–yes] [–skip-cache-clear]

Ok, the problem was/is that SSH uses the PHP8.1 version. With

/opt/plesk/php/8.3/bin/php /var/www/vhosts/httpdocs/matomo/console core:update

it worked. Why SSH uses a PHP version which I have not installed is a mystery to me though

Hi @Miches
I am not an unix neither an SSH expert, but maybe the default path for applications is not the same on SSH or on direct? Or maybe this is define on the user configuration?