php 为 MySQL 安装 PDO 驱动程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4624940/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Installing PDO driver for MySQL
提问by Shahid Karimi
I want to install PDO driver for MySQL but have no idea how to.
我想为 MySQL 安装 PDO 驱动程序,但不知道如何安装。
采纳答案by user466764
You might find this PHP PDO tutorialhelpful.
您可能会发现此PHP PDO 教程很有帮助。
回答by macha
You should have framed the question better. Mention what version of PHP you are working with and what database are you trying to talk to?? with PHP 5.1.0 you already have PDO libraries, it depends on what database you are working with to determine the drivers you need.
你应该更好地提出这个问题。提及您正在使用什么版本的 PHP 以及您想与什么数据库交谈??在 PHP 5.1.0 中,您已经拥有 PDO 库,这取决于您使用的数据库来确定您需要的驱动程序。