Solved Unable to load dynamic library 'mysql.so'

I installed lang/php74-extensions
After php -m I get the following messages:
PHP Warning: PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/local/lib/php/20190902/mysql.so (Cannot open "/usr/local/lib/php/20190902/mysql.so"), /usr/local/lib/php/20190902/mysql.so.so (Cannot open "/usr/local/lib/php/20190902/mysql.so.so")) in Unknown on line 0
Code:
php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/local/lib/php/20190902/mysql.so (Cannot open "/usr/local/lib/php/20190902/mysql.so"), /usr/local/lib/php/20190902/mysql.so.so (Cannot open "/usr/local/lib/php/20190902/mysql.so.so")) in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
enchant
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDFlib
PDO
pdo_dblib
PDO_Firebird
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

And when I GET in my browser , I see the following message:
Code:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /usr/local/www/apache24/data/wp-includes/wp-db.php:1661 Stack trace: #0 /usr/local/www/apache24/data/wp-includes/wp-db.php(631): wpdb->db_connect() #1 /usr/local/www/apache24/data/wp-includes/load.php(426): wpdb->__construct('pahlevan_azad', '{K~k.%@{#8CF', 'pahlevan_azad', 'db1') #2 /usr/local/www/apache24/data/wp-settings.php(126): require_wp_db() #3 /usr/local/www/apache24/data/wp-config.php(89): require_once('/usr/local/www/...') #4 /usr/local/www/apache24/data/wp-load.php(37): require_once('/usr/local/www/...') #5 /usr/local/www/apache24/data/wp-blog-header.php(13): require_once('/usr/local/www/...') #6 /usr/local/www/apache24/data/index.php(17): require('/usr/local/www/...') #7 {main} thrown in /usr/local/www/apache24/data/wp-includes/wp-db.php on line 1661

Where is my problem? How can I solve it?
 
Back
Top