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

d3pd picture d3pd · Dec 8, 2012 · Viewed 17k times · Source

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.)

Answer

bear picture bear · Dec 8, 2012

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