zabbix切换数据库思路
zabbix切换数据库操作1、安装mysql-server数据库 ,将三个表结构复制过去
将schema.sqlimages.sql data.sql数据库从zabbix服务器上复制到/root路径下面
然后导入表结构
#/usr/bin/mysql -uzabbix -pzabbix zabbix < /root/schema.sql
Warning: Using a password on the command line interface can be insecure.
#/usr/bin/mysql -uzabbix -pzabbix zabbix < /root/images.sql
Warning: Using a password on the command line interface can be insecure.
#/usr/bin/mysql -uzabbix -pzabbix zabbix < /root/data.sql
Warning: Using a password on the command line interface can be insecure.
2、修改zabbix_server.conf 中注意这边是下划线
#find / -name 'zabbix_server.conf'
/etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
3、修改zabbix-server.php
# vi /var/www/html/zabbix/conf/zabbix.conf.php
注意检查表红色的地方
页:
[1]