php7.2 开启 pdo连接 【解决 Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' 错误】

1.将php.ini中extension=php_mysql.dll前的;去掉。[如果不存在 则添加]

2.重启服务