Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The idea of switching databases by zabbix

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Zabbix switch database operation

1. Install the mysql-server database and copy the three table structures

Copy the schema.sql p_w_picpaths.sql data.sql database from the zabbix server to the / root path

Then import the table structure

[root@mysql-server] # / usr/bin/mysql-uzabbix-pzabbix zabbix < / root/schema.sql

Warning: Using a password on the command line interface can be insecure.

[root@mysql-server] # / usr/bin/mysql-uzabbix-pzabbix zabbix < / root/p_w_picpaths.sql

Warning: Using a password on the command line interface can be insecure.

[root@mysql-server] # / usr/bin/mysql-uzabbix-pzabbix zabbix < / root/data.sql

Warning: Using a password on the command line interface can be insecure.

2. Notice that there is an underscore in the modification of zabbix_server.conf.

[root@zabbix01 ~] # find /-name 'zabbix_server.conf'

/ etc/zabbix/zabbix_server.conf

LogFile=/var/log/zabbix/zabbix_server.log

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

3. Modify zabbix-server.php

[root@Zabbix02 ~] # vi / var/www/html/zabbix/conf/zabbix.conf.php

Pay attention to the red part of the checklist

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report