Fatal error: ezSQL_mysql requires mySQL Lib to be compiled and / or linked to the PHP engine

I am trying to get a link shortening YOURLS PHP scripts while working on my base web server running Lubuntu 12.04.

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

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

I am very new to MySQL and PHP, so I do not know how to approach this problem. Could you point me in the right direction?

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

+4
source share
4 answers

You need to make sure that the MySQL extension is loaded in PHP.ini and also compiled in PHP.

+2
source

If you installed your php server and mysql via yum, try using yum to find the appropriate package.

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

0
source

Installing all php packages and its dependencies worked for me.

yum install php - *

0
source

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

to class ezSQL_mysqlx extends ezSQLcore

:)

-1
source

All Articles