Call to undefined function: mysql_connect()

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
gun

Call to undefined function: mysql_connect()

Post by gun »

Hi,
the following error occurs when going to step3 of the installation wizard:

Code: Select all

Fatal error: Call to undefined function: mysql_connect() in /var/www/cmsmadesimple-0.7.3/adodb/drivers/adodb-mysql.inc.php on line 338
any ideas?

Connecting to mysql via MySQLFront and Webmin works in general

regards Gunnar
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Call to undefined function: mysql_connect()

Post by Ted »

I would guess that the mysql modules aren't installed. If it's linux/unix, there is generally a php-mysql package or something similar that you need to install to enable that functionality. If it's windows, then you might have to wait for someone else to help. :)
gun

Call to undefined function: mysql_connect()

Post by gun »

thanks for the fast reply,
but it is debian-linux and there is php4-mysql 4.3.10-2 installed.
still any ideas?

cu
Gunnar
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Call to undefined function: mysql_connect()

Post by Ted »

Look in /etc/php4/apache2/php.ini and search for extension=mysql.so. Make sure it's not commented out (has a ; in front of it). If so, take out the ; and restart apache.
gun

Call to undefined function: mysql_connect()

Post by gun »

thats it!

so... i'm new to php, there will more stupid questions coming soon :-)

thanks
Gunnar
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Call to undefined function: mysql_connect()

Post by Ted »

Bring 'em on! :)
Locked

Return to “[locked] Installation, Setup and Upgrade”