英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论