[英]PHP Problem with PDO: could not find driver
Hello i am trying to build a webapp using oracle DB.您好,我正在尝试使用 oracle 数据库构建一个 Web 应用程序。 So I created connect.php using PDO to access the Oracle database .
所以我创建了 connect.php 使用PDO来访问Oracle 数据库。 But i get the message:
could not find driver
但我收到消息:
could not find driver
So i am using apache2 and in my php.ini this extensions are activated:所以我正在使用 apache2 并且在我的 php.ini 中激活了这个扩展:
extension=oci8_12c; Use with Oracle Database 12c Instant Client
extension=oci8_19; Use with Oracle Database 19 Instant Client
extension=odbc
extension=pdo_firebird
extension=pdo_mysql
extension=pdo_oci
extension=pdo_odbc
extension=odbc
extension=pdo_firebird
extension=pdo_mysql
extension=pdo_oci
extension=pdo_odbc
Maybe i am missing some packages or extensions ?也许我缺少一些包或扩展? Can u help me out?
你能帮帮我吗? I my phpinfo i cant find an extra section for oci and i guess thats bad?
我的 phpinfo 找不到 oci 的额外部分,我想这很糟糕吗?
I am working on Ubuntuu VM but my database is on another server.我在 Ubuntuu VM 上工作,但我的数据库在另一台服务器上。 I have
Installed PHP 8.1.2
我已经
Installed PHP 8.1.2
please help me to eliminate this php error请帮我消除这个 php 错误
Just run赶紧跑
sudo apt install php-mysql
sudo apt 安装 php-mysql
in terminal在终端
Hi I have also faced this issue but this article helped me you no need to edit.ini file just follow this article嗨,我也遇到过这个问题,但是这篇文章对我有帮助,您无需编辑 .ini 文件,只需按照本文操作即可
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.