免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1068 | 回复: 5
打印 上一主题 下一主题

Cacti config question [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-20 21:23 |只看该作者 |倒序浏览
dear 's

hello

after i finished the cacti configuration and open in my web page
this error appear,

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

i'm using redhat 9, mysql version 4.1 and cacti 0.8.6g
can you help me fix this problem?


[root@localhost root]# PHP -M
-bash: PHP: command not found
[root@localhost root]# php -m
[PHP Modules]
ctype
mysql
overload
pcre
posix
session
standard
tokenizer
xml

[Zend Modules]




thanks !

论坛徽章:
0
2 [报告]
发表于 2005-11-21 09:37 |只看该作者

please help me ! thanks!

版主 及各位 請 幫忙看看吧!謝了!

论坛徽章:
0
3 [报告]
发表于 2005-11-24 00:21 |只看该作者
没有设置数据库连接参数
建议按这个贴子做一遍
http://bbs.chinaunix.net/forum/v ... amp;highlight=cacti

论坛徽章:
0
4 [报告]
发表于 2005-11-26 14:10 |只看该作者
原帖由 jeonchl 于 2005-11-20 21:23 发表
dear 's

hello

after i finished the cacti configuration and open in my web page
this error appear,

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/cacti/lib/ad ...

哥们你把mysql调好了吗

论坛徽章:
0
5 [报告]
发表于 2005-11-26 14:15 |只看该作者
#!/bin/sh

cd mysql-4.1.11

C=gcc \
CFLAGS="-O3 -fno-omit-frame-pointer" \
CXX=gcc \
CXXFLAGS="-O3 -fno-omit-frame-pointer -felide-constructors \
    -fno-exceptions -fno-rtti" \
    ./configure --prefix=/usr/db/mysql \
    "--with-comment=Official MySQL binary" \
    --with-extra-charsets=complex

groupadd mysql
useradd -g mysql mysql
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/db/mysql
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
chgrp -R mysql .

cp share/mysql/mysql.server /etc/init.d/mysql
chmod +x /etc/init.d/mysql
chkconfig --add mysql
chkconfig --level 345 mysql on
/etc/init.d/mysql start
cd mysql-test
./mysql-test-run

////////////////////这个脚本可以直接用,把mysql下来执行这个shell就可以安装完成,不用管

论坛徽章:
0
6 [报告]
发表于 2005-11-26 15:14 |只看该作者
我也来说一句,我也碰到过您的这个问题,好像不是数据库和程序的问题,我当是是这样发现的:
发现用mysql -uroot  可以连上,但是mysql -ucactiuser -pcactipw就是连不上,所以我把密码去掉了,并且在CACTI的配置文件中去掉连接密码,当然MYSQL数据的用户也要去掉,这样用mysql -ucactiuser 可以连上了,这样就解决了你的这个问题了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP