Lnmp environment, what is the problem of installing the extension pdo_mysql of PHP7 to report an error?

Environment Information: centos7.4 php7.2 mysql5.7
1.php is compiled and installed

2.MySQL is installed with rpm
mysql-community-client-5.7.23-1.el7.x86_64.rpm
mysql-community-common-5.7.23-1.el7.x86_64.rpm
mysql-community-devel-5.7.23-1.el7.x86_64.rpm
mysql-community-embedded-5.7.23-1.el7.x86_64.rpm
mysql-community-embedded-compat-5.7.23-1.el7.x86_64.rpm
mysql-community-embedded-devel-5 .7.23-1.el7.x86_64.rpm
mysql-community-libs-5.7.23-1.el7.x86_64.rpm
mysql-community-libs-compat-5.7.23-1.el7.x86_64.rpm
mysql-community-minimal-debuginfo-5.7.23-1.el7.x86_64.rpm
mysql-community-server-5.7.23-1.el7.x86_64.rpm
mysql-community-server-minimal-5.7.23-1.el7.x86_64.rpm
mysql -community-test-5.7.23-1.el7.x86_64.rpm

deployment project reported an error indicating that a pdo_mysql extension is required. So install the online method and go to the php source code to find the ext/pdo_mysql folder to compile

[root@centos74lnmp pdo_mysql]-sharp / usr/local/php/bin/phpize
[root@centos74lnmp pdo_mysql]-sharp. / configure-- with-php-config=/usr/local/php/bin/php-config-- with-pdo-mysql=/usr/bin/mysql-- with-zlib-dir=/usr/lib

finally misreported:
configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.

how to solve it?

Dec.27,2021

recompile and install PHP, to add the required extension parameters, the problem has been solved.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30ba5-2bd53.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30ba5-2bd53.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?