Home > Backend Development > PHP Tutorial > Where can I download the pdo_mysql extension for php? (pecl says that this package is no longer maintained and has been replaced)

Where can I download the pdo_mysql extension for php? (pecl says that this package is no longer maintained and has been replaced)

WBOY
Release: 2016-10-24 00:12:40
Original
1348 people have browsed it

It is shown on PECL that it has been deprecated. Go to the following URL, but an error is reported when opening this URL (not found on github)

This package is not maintained anymore and has been superseded. Package has moved to channel http://svn.php.net/viewvc/php... package ext/pdo_mysql.
The description below says not to use this, then Where can I download the pdo_mysql extension? (I installed php7 with ubuntu apt)
Do not use this, as PDO has been moved into core (the php source) so this pecl extension is dead.
This old extension provided a MySQL driver for PDO.

  1. Where to download the latest pdo_mysql extension (solved)

  2. I have php-cli and php-fpm installed on my computer. Do they share the same extension? (For example, if I want to install the pdo_mysql extension, do I need to install each one once? If so, how can I specify the installed php version when compiling?)

  3. Can I copy a pdo_mysql.so file directly from another computer? Or does it have to be compiled and installed on the current computer to be effective?

It has been installed now, but I installed it through apt. I would like to ask if the php installed by apt cannot compile and install extensions? Who can answer questions 2 and 3?

Reply content:

It is shown on PECL that it has been deprecated. Go to the following URL, but an error is reported when opening this URL (not found on github)

This package is not maintained anymore and has been superseded. Package has moved to channel http://svn.php.net/viewvc/php... package ext/pdo_mysql.
The description below says not to use this, then Where can I download the pdo_mysql extension? (I installed php7 with ubuntu apt)
Do not use this, as PDO has been moved into core (the php source) so this pecl extension is dead.
This old extension provided a MySQL driver for PDO.

  1. Where to download the latest pdo_mysql extension (solved)

  2. I have php-cli and php-fpm installed on my computer. Do they share the same extension? (For example, if I want to install the pdo_mysql extension, do I need to install each one once? If so, how can I specify the installed php version when compiling?)

  3. Can I copy a pdo_mysql.so file directly from another computer? Or does it have to be compiled and installed on the current computer to be effective?

It has been installed now, but I installed it through apt. I would like to ask if the php installed by apt cannot be compiled and installed as an extension? Who can answer questions 2 and 3?

sudo dnf install php-pdo

I don’t understand what you want to ask for the second question, but php-fpm and php-cli are two different extension packages. If apt is installed, they need to be installed separately

The third question is, the same version of the operating system is acceptable. For example, if you clone a virtual machine, it can be used directly by copying it.

If compiled and installed, there is a pdo_mysql directory in the source code directory ext.

<code>/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config --with-pdo-mysql=mysqlnd
make && make install</code>
Copy after login

If it is installed by apt, refer to @machenchi0207’s answer

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template