Normal hosting on Ru-Center. PHP 7. The PDO and PDO_MYSQL extensions are included. Framework Yii2.
When trying to migrate ...
php yii migrate ... an error occurs:
PHP Fatal Error 'yii \ base \ ErrorException' with message 'Class' PDO 'not found'
I turned to the hoster. They advised to carry out a command of the following form:
php -c ~/etc/php.ini /home/[host_user]/[domain_foder]/yii migrate But the result of this command is the following error:
Exception 'yii \ db \ Exception' with message 'SQLSTATE [HY000] [2002] No such file or directory'
Tell me which way to think ...


php -i | grep pdophp -i | grep pdo- u_mulder