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.
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.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge