Solution: mysql_connect () is not supported. Check whether the mysql module is correctly loaded.
Fault description: linux discuz installation error prompt: mysql_connect () does not support checking whether the mysql module is correctly loaded.
Solution: View/usr/lib/php/modules/(64-bit view/usr/lib64/php/modules/) without mysql. so.
Find the centos5.4 installation disk, put it in the optical drive, and find
Php-mysql-5.1.6-20.el5.i386.rpm
Php-pdo-5.1.6-20.el5.i386.rpm
The two files are then uploaded to the server through FTP.
Install:
Rpm-I php-mysql-5.1.6-20.el5.i386.rpm -- nodeps
Pm-I php-pdo-5.1.6-20.el5.i386.rpm -- nodeps
View the so file again:
Ls/usr/lib/php/modules/
Dbase. so ldap. so mysqli. so mysql. so pdo_mysql.so pdo. so pdo_sqlite.so phpcups. so
Mysql. so already exists.
Then configure
Vi/etc/php. ini find extension = msql. so, remove the semicolon below it, and add the following:
Extension = mysql. so
Extension = mysqli. so
Extension = pdo_MySQL.so
Save and restart httpd
/Etc/init. d/httpd restart
Refresh the page and mysql can be connected.