Ad Widget

Collapse

Database Help Please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krisjturn
    Junior Member
    • Jan 2009
    • 9

    #1

    Database Help Please

    1. I am new to Zabbix and most open source programs. Just wanted to get that out of the way.

    The company I started with has a current Zabbix 1.4 server running on a very very old server. I have created and successfully installed my first Zabbix 1.6 sever with little or no problems.

    How can I get my current 1.4 data from the old server moved over to the new 1.6 server? I am trying to read how to's and other items but nothing talks about moving a database from an old server to a new one.

    Thanks,

    Kris Turner
    [email protected]
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    The high level procedure

    Old server:
    mysql dump the db
    (mysqldump mydb > mydbbackup.sql)
    push the dump to the new server (scp or some other means)

    New server:
    Import the Mysql db
    (cat mydbbackupl.sql | mysql mydb)
    Perform normal Zabix upgrade procedure.

    Test this one or two times first before making your deployment migration.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • Calimero
      Senior Member
      • Nov 2006
      • 481

      #3
      Originally posted by krisjturn
      How can I get my current 1.4 data from the old server moved over to the new 1.6 server? I am trying to read how to's and other items but nothing talks about moving a database from an old server to a new one.
      As nelsonab said, the process is more of an upgrade from 1.4 to 1.6 than a fresh 1.6 database followed by an import of previous 1.4 data.

      Comment

      • krisjturn
        Junior Member
        • Jan 2009
        • 9

        #4
        Thanks. Database moved and everything is running. Except for a few things.. permissions on all my users who have access to Zabbix. The only way they can see anything is if I assign them super admin rights...

        Comment

        Working...