Focus on cloud service provider activities
Notes on website operation and maintenance

Resolve the error reported by the program "Call to undefined function mysql_connect"

Today, Lao Zuo, after restoring the website data and moving, has modified the new database connection, but after opening the website, an error "(0) UNKNOWN: Call to undefined function mysql_connect() (set_exception_handler) (150101) (Linux; LiteSpeed; PHP 7.2.34; mysql; curl)" appears. This error is shown in the figure below.

 Resolve the error reported by the program "Call to undefined function mysql_connect"

Judging from the error, it should be a PHP compatibility problem, because I reset the database password and modify the configuration file without any problem or error. It is estimated that PHP compatibility is not good.

By default, the host is PHP 7.2, and I set it to 5.6. It is estimated that the problem is caused by the program version.

Finally, the problem is solved after the PHP version is reduced.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( three )
Do not reprint without permission: Lao Zuo's Notes » Resolve the error reported by the program "Call to undefined function mysql_connect"


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge