pdo - PDO:在 localhost ubuntu 18.04 上找不到驱动程序
问题描述
只是在 ubuntu 18.04、php7.2 和 Mysql Server 版本上进行简单的 PDO 测试:5.7.24-0ubuntu0.18.04.1(Ubuntu): http://localhost/gino/test_pdo/给了我一个错误“找不到驱动程序” .
I have installed all the appropiate files eg:
sudo apt-get install php7.2-mysql
sudo phpenmod pdo_mysql
sudo service apache2 restart
I have also deleted the ; from php.ini file eg:
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
Also the phpinfo.php file DOES NOT SHOW PDO support for mySQL.
I am at a loss on how to fix this error "could not find driver" that shows up on the browser. As you can see from above in the php.ini file shows that the PDO module is there BUT not in the phpinfo.php file.
解决方案
推荐阅读
- c - 打印具有自定义行、列和长度的重复菱形
- html - HTML CSS 相同的表格不对齐
- javascript - 科尔多瓦ios中的谷歌地图加载问题
- c# - 控制台应用程序崩溃
- javascript - 如何通过输入一个密码访问 5 公里范围内的一组密码
- javascript - node-pre-gyp install --fallback-to-build
- intellij-idea - IntelliJ IDEA 多种终端
- java - 使用 Ant 打印 Java 的包层次结构
- internet-explorer-11 - 仅在 IE 中:表单内的组合树不起作用
- java - 在tablayout之间切换时如何修复google登录选项功能重复和崩溃