since yesterday I try to install cacti-0.8.6b on freeBSD 5.3, but it doesn't work.
I get on the browser following error:
Code: Select all
Fatal error: Call to undefined function mysql_connect() in
/usr/local/share/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 323
Code: Select all
1: Create the MySQL database
# mysqladmin --user=root create cacti
2: Create a mysql user/password for cacti
# echo "CREATE DATABASE cacti;
GRANT ALL ON cacti.* TO cactiuser at localhost IDENTIFIED BY 'cactiuser';
FLUSH PRIVILEGES;" | mysql &&
3: Import the default cacti database
# mysql cacti < /usr/local/share/cacti/cacti.sql
4: Edit your config.php
Specify the MySQL user, password and database for
your cacti configuration.
5: Add a line to your /etc/crontab file similar to:
*/5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
6: Point your web browser to the cacti dir and login with admin/admin
from the comman line I can connect to mysql using cactiuser and password without any problems:
Code: Select all
bsd# mysql -u cactiuser -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.9
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
could be a problem of mysql-client-4.1.9 ?
I have mysql 4.1 installed.