免费注册 查看新帖 |

Chinaunix

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

cacti 安装错误! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-02 11:36 |只看该作者 |倒序浏览
You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:


mysql -u cactiuser -p cactidb < cacti.sql

This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.
我已经成功执行了mysql -u cactiuser -p cactidb < cacti.sql,在配置文件里保证Mysql连接的用户名、密码正确。

[ 本帖最后由 lnycm 于 2006-12-2 11:38 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-12-04 10:51 |只看该作者
cactidb的权限问题,把权限分配给你新建的cacti用户

论坛徽章:
0
3 [报告]
发表于 2006-12-04 10:52 |只看该作者
mysql>; create database cactidb;
mysql>; grant all on cactidb.* to cactiuser;
mysql>; grant all on cactidb.* to cactiuser@localhost;
mysql>; set password for cactiuser@localhost=password('cactipw');
mysql>; exit

论坛徽章:
0
4 [报告]
发表于 2006-12-06 11:48 |只看该作者
您说的操作都做了,但是不行.我是用cactiuser导入的数据

论坛徽章:
0
5 [报告]
发表于 2006-12-06 11:50 |只看该作者
把现在数据库已有的cacti创建的数据库drop掉再重新执行试试

论坛徽章:
0
6 [报告]
发表于 2006-12-06 14:23 |只看该作者
也试了,不行

论坛徽章:
0
7 [报告]
发表于 2006-12-07 00:38 |只看该作者
好像是cacti的数据库链接过多。我也遇到过这种问题。如果我频繁的刷新浏览器查看cacti的结果。会导致mysql很多链接不能释放。你可以重新启动一下apapche试试。我是这样解决的。

好像cacti的每次通过ie访问都会建立5个不释放的链接。不知道是不是bug。

[ 本帖最后由 remote_roamer 于 2006-12-7 00:40 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2006-12-07 01:53 |只看该作者
用root应该可以吧:
/usr/local/mysql/bin/mysql –u root –prootpw cactidb < cacti.sql

论坛徽章:
0
9 [报告]
发表于 2006-12-08 13:50 |只看该作者
用/usr/local/mysql/bin/mysql –u cactiuser –pcactipw cactidb < cacti.sql 可以导入数据,但是用http://ip/cacti的时候显示
You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:


mysql -u cactiuser -p cactidb < cacti.sql

This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP