Linux server, error after installing pdo_mysql extension

after I install the pdo_mysql extension, I link with tp and report an error from time to time

: (
Undefined class constant "MYSQL_ATTR_INIT_COMMAND"
wrong location

but after a while it returned to normal, and after a while it was out of touch, and it was very unstable. The solution

my php version is 7.0

Jan.26,2022

The problem with

is very simple. In the php configuration file (in the general package version of php.ini, in the php file, php defaults to php.ini-production, renaming this file to ok), I only opened

.

extension=php_mysql.dll
extension=php_mysqli.dll is also missing, extension=php_pdo_mysql.dll,

Menu