Mysql_connect () Do not support please check if MySQL module is loaded correctly

Source: Internet
Author: User

Symptom : Linux installation discuz error tip: mysql_connect () not supported please check that the MySQL module is loading correctly. Workaround: View/usr/lib/php/modules/(64-bit look/usr/lib64/php/modules/There 's no mysql.so in there. Locate the centos5.4 installation disk, insert the CD drive, and then locate the PHP in the CentOS directory-mysql-5.1.6- -. el5.i386.rpmphp-pdo-5.1.6- -. el5.i386.rpm two files and then upload them to the server via FTP. Perform installation: RPM-I. php-mysql-5.1.6- -. el5.i386.rpm--NODEPSPM-I. php-pdo-5.1.6- -. el5.i386.rpm--Nodeps re-view so file: LS/usr/lib/php/modules/dbase.so ldap.so mysqli.so mysql.so pdo_mysql.so pdo.so pdo_sqlite.so phpcups.somysql.so exist. Then configure VI/etc/php.ini found extension=.msql.so, then remove the front semicolon below it and add the following: extension=mysql.soextension=mysqli.soextension=pdo_mysql.so Save, restart httpd/etc/init.d/httpd Restart Refresh the Web page, MySQL has been able to connect. 

From: http://blog.csdn.net/zs75622126/article/details/6958058

Mysql_connect () Do not support please check if MySQL module is loaded correctly

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.