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.
Where to download the latest pdo_mysql
extension (solved)
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?)
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?
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.
Where to download the latest pdo_mysql
extension (solved)
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?)
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>
If it is installed by apt, refer to @machenchi0207’s answer