mysql_connect()

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
John_l
Posts: 2
Joined: Sat Dec 27, 2003 4:24 pm
Contact:

mysql_connect()

Post by John_l »

All,

Can someboby help me solv this problem.

I'm using Redhat 7.3 installed the rrdtool, php 4.1 and net-snmp.

extracted the cacti tar.gz to var/www/html/
copied the database into mysql and set the permissions on the database
used the same username and password in the include/config.php

after making connection to http://host/cacti/index.php i get the following error.

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 212

How can i resolve this? this is the third time i get it

Please help :evil:
User avatar
_pre[PL]
Posts: 12
Joined: Mon Dec 29, 2003 5:25 pm
Location: Poland, Gdynia
Contact:

Post by _pre[PL] »

mysql extension loaded ?
check php.ini file

php-mysql installed ?
John_l
Posts: 2
Joined: Sat Dec 27, 2003 4:24 pm
Contact:

Post by John_l »

All,

How do i install this part php-mysql installed ?

John
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

You can check if it is installed by using the following command:
rpm -q php-mysql
If it's not install it from your RH installation disks or download php-mysql rpm from the internet (e.g. from rpmdfind.net, search form php-mysql and get the one from RH 7.3 distribution).

- Piotr
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests