简体   繁体   English

如何在我的 xampp (windows) 上安装 PDO 扩展?

[英]How to install PDO extension on my xampp (windows)?

I searched for a while in this website but they say I need to install php, but i thought that when I installed XAMPP, php is also installed in that already.我在这个网站上搜索了一段时间,但他们说我需要安装 php,但我认为当我安装 XAMPP 时,php 也已经安装在其中。

I already search and placed the ;extension=php_pdo.dll , though ;extension=php_pdo_mysql.dll is already there, it can't find the driver.我已经搜索并放置了;extension=php_pdo.dll ,虽然;extension=php_pdo_mysql.dll已经存在,但找不到驱动程序。

Also in where part the extension directory will be found?也可以在何处找到扩展目录? I can't tell because when I searched it in my XAMPP there are 2 extension so I can't edit neither of them because it might get error somehow.我不知道,因为当我在 XAMPP 中搜索它时,有 2 个扩展名,所以我无法编辑它们,因为它可能会以某种方式出错。

Usually, this extension has been installed in Xampp .通常,此扩展已安装在Xampp I have faced this problem and it because I have 2 version of PHP installed in my system.我遇到了这个问题,因为我的系统中安装了 2 个版本的 PHP。 I remove the first one and add the path of PHP of Xampp to my system variables path.我删除了第一个并将XamppPHP路径添加到我的系统变量路径中。 path of PHP in Xampp : C:\\xampp\\php Xampp 中 PHP 的路径: C:\\xampp\\php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM