linux – should be a file pdo_mysql.so under php/modules? i have only pdo.so and pdo_sqlite

huangapple go评论99阅读模式
英文:

linux - should be a file pdo_mysql.so under php/modules? i have only pdo.so and pdo_sqlite

问题

更新 PHP 到 7.3(Linux)后,

我遇到了错误:

> 驱动程序中发生了异常:找不到驱动程序。

这可能是因为 PDO 吗?

在我的文件夹 php/modules 中,我找不到 pdo_mysql.so。它应该在那里吗?

英文:

After updating PHP to 7.3 (linux).

I get error:

> An exception occurred in driver: could not find driver.

Could it be because of PDO?

In my folder php/modules I don't find pdo_mysql.so. Should it be there?

答案1

得分: 1

确保在文件 php.ini 中取消注释字符串 extension=pdo_mysql。这个文件可以位于 /etc/php/7.3/cli/etc/php/7.3/apache2 目录中,具体取决于您安装的软件包。

英文:

Make sure that in file php.ini uncommented string extension=pdo_mysql. This file can be located in the /etc/php/7.3/cli or in /etc/php/7.3/apache2 directory depending on which package you installed.

huangapple
  • 本文由 发表于 2020年1月6日 18:11:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/59610183.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定