致命错误:ezSQL_mysql要求mySQL Lib被编译或链接到PHP引擎

I'm attempting to get the link shortening PHP scripts YOURLS working on my basic web server running Lubuntu 12.04.

I have a MySQL database created and PHP5 installed. When I attempt to access the administration interface for YOURLS in a browser, I am presented with the following message:

Fatal Error: ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine

I'm very new to MySQL and PHP, so I don't know how to approach this problem. Could you point me in the right direction on this?

(For a quick guide to setting up YOURLS, you can see this video to get the general idea.)

You need to ensure that the MySQL extension is loaded into PHP.ini, and has been compiled into PHP as well.

If you have installed your php server and mysql through yum, try to use yum to search for the relevant package.

For example, if you used "yum install php55", try "yum search php55", then look for something like "php55-mysqld". If found, install it "yum install php-mysqld". That will install the required module for PHP to interact with your mysql.

finnaly i Found the solution just change this line > class ezSQL_mysql extends ezSQLcore in ez_sql_mysql.php

to class ezSQL_mysqlx extends ezSQLcore

:)

Installing all php packages and its dependencies worked for me.

yum install php-*

Install mysql-devel and php-mysqli packages

yum install mysql-devel php-mysqli

Names can change a bit as Ernest show's in his answer.