Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Error: "Call to undefined function mysqli_connect()"

In PHP I'm getting this error:

Call to undefined function mysqli_connect()

I checked my php.ini file and there is no ; in front of extension=php_mysql.dll or extension=php_mysqli.dll.

I think the I am getting this error because my figuration File (php.ini) Path is C:\Windows. How would I change it to C:\Apache2.2\php\php.ini?

like image 624
Aaron Avatar asked Apr 18 '11 15:04

Aaron


1 Answers

On Ubuntu machines you can try:

sudo apt-get install php5-mysql

since the basic PHP5 install does not include the mysqli_connect function.

like image 172
pmagunia Avatar answered Nov 07 '22 18:11

pmagunia