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

Source: Internet
Author: User

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.

Related Article

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.