Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The mysql_connect () function in PHP does not support how to solve the problem.

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "the mysql_connect () function in PHP does not support how to solve it", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn how to solve the problem that the mysql_connect () function in PHP does not support.

Method: 1, open the "php.ini" file; 2, search for "pdo_mysql" and "curl", delete ";" before "; extension=php_curl.dll" and "; extension=pdo_mysql.dll"; 3, restart the apache server.

The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.

What if the mysql_connect () function is not supported in PHP?

Mysql_connect () function is a php and mysql database connection function, if your php does not support the mysql_connect () function, your database can not connect with mysql, let me summarize the solution to mysql_connect () can not be used.

The reason why mysql_connect () does not support is that the extension of php is not configured properly.

Workaround not supported by mysql_connect ():

1. Open the php.ini file:

2. Search pdo_mysql and curl

; extension=php_curl.dll;extension=pdo_mysql.dll

Then remove the one in front of the two

The libmysql.dll file is missing in the system's system32 (C:/windows/system32) directory. The solution is to find the libmysql.dll in the php directory, copy the libmysql.dll to the C:/windows/system32 directory, and then restart the Web service.

In the php.ini file under the C:/windows directory, the previous ";" in "; extension=php_mysql.dll" is not removed, so the corresponding function cannot be used. The solution is to open the php.ini file to find it; change extension=php_mysql.dll to

Extension=php_mysql.dll / / remove the preceding; make it effective.

3. Restart the iis or apache server.

At this point, I believe you have a deeper understanding of the "mysql_connect () function in PHP does not support how to solve", might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report