Solution: mysql_connect () is not supported. Check whether the MySQL module is correctly loaded.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.