Home >Database >Mysql Tutorial >安装Cacti过程中的异常及解决方法

安装Cacti过程中的异常及解决方法

WBOY
WBOYOriginal
2016-06-07 17:20:261126browse

修改默认数据库连接100,安装完成之后添加主机,可能用着用着cacti出现rdquo;FATAL: Cannot connect to MySQL server on

Cacti安装完成之后可能遇到的问题和测试相关:

1、snmp测试

snmpwalk -c public -v 2c localhost   ==》 结果正常

2、有些mysql默认安装可能会出现poller.php连接的问题,解决方法为更改mysql.sock路径,我们用软连接实现.

ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock

3、修改默认数据库连接100,安装完成之后添加主机,可能用着用着cacti出现”FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'“报错,我当时是郁闷了很久,明明配置是OK的,怎么连不上,我登陆mysql才发现登陆不上,报连接满了,解决方法编辑my.cnf设置最大连接.

set-variable = max_connections=16384

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn