Zabbix Server Database Migration

Source: Internet
Author: User

Zabbix Server Migration db:

Before Zabbix server and DB 10.10.4.3on the same machine, DB is now migrating to another machine 10.10.4.2


Zabbix Server Intranet ip:10.10.4.3

The new DB intranet IP is 10.10.4.2


1. Export the Zabbix library and import it into the new DB

Mysql-uroot-p zabbix< Zabbix.sql


2. New DB Add and authorize Zabbix users

Grant all on zabbix.* to [email protected] '% ' identified by ' Zabbix ' with grant option;      

flush Privileges;

#添加用户zabbix密码zabbix can be accessed by the% arbitrary IP    

3. Set MY.CNF listener address for all, and modify iptables allow

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7B/0F/wKioL1bFnWiDo5fGAAADuoFuRwA511.png "title=" 11111. PNG "alt=" Wkiol1bfnwido5fgaaaduofurwa511.png "/>

4. Firewall Policy

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7B/0F/wKioL1bFna_x7EpLAAANAuLNdyY961.png "title=" 22222222.png "alt=" Wkiol1bfna_x7eplaaanaulndyy961.png "/>

Note: Be sure to use the command line on the server machine to connect the DB remotely

#mysql-H 10.10.4.2-u zabbix-p

5. Modify Zabbix page profile db SERVER = 10.10.4.2

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7B/0F/wKioL1bFnhewa5CzAAAmDgcKBsQ804.png "title=" 333333333333.png "alt=" Wkiol1bfnhewa5czaaamdgckbsq804.png "/>

6. Start Zabbix_server, migration is successful

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7B/0F/wKioL1bFnkbjUSH0AAAQc567Yh4359.png "title=" 4444444444444444444.png "alt=" Wkiol1bfnkbjush0aaaqc567yh4359.png "/>

This article is from the "Brother" blog, please be sure to keep this source http://yangmv.blog.51cto.com/2366107/1743108

Zabbix Server Database Migration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.