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/usr/lib64/PHP/modules /)There is no 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.