Ad Widget

Collapse

some database backup queries plz help..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bluesurfer
    Junior Member
    • Jul 2007
    • 11

    #1

    some database backup queries plz help..

    Hi

    I need to do a database backup from 1 zabbix server to another new zabbix server. the old zabbix server's database is a old version while the new zabbix is a recent version. I m using mysql database. wanna ask how to do this backup??on the old zabbix i used mysqldump to get the data out. so do i need to do anything before i dump the data into the new zabbix server? Thanks a lot!
  • swaterhouse
    Senior Member
    • Apr 2006
    • 268

    #2
    Just load the old data into the new server and run the upgrade scripts for the new version.

    Comment

    • bluesurfer
      Junior Member
      • Jul 2007
      • 11

      #3
      erm...as in run the upgrade script for the new zabbix server?so i pump the data into the database den i run the upgrade script?

      Comment

      • swaterhouse
        Senior Member
        • Apr 2006
        • 268

        #4
        Yes that should be all you need to do.

        Comment

        • bluesurfer
          Junior Member
          • Jul 2007
          • 11

          #5
          oh man...how do i put the xx.sql data back in??and erm to run the script izit ./<scriptname> ? erm so sorry..quite new to linux and was thrown this task...

          Comment

          • bbrendon
            Senior Member
            • Sep 2005
            • 870

            #6
            Unofficial Zabbix Expert
            Blog, Corporate Site

            Comment

            • bluesurfer
              Junior Member
              • Jul 2007
              • 11

              #7
              hi,

              i have used mysqldump to get the data out from the database...so how do I put the extracted data into another database??also use mysqldump?? den how do u run the script??i tried ./patch.sql they say its not exceutable file..==''

              Comment

              • bluesurfer
                Junior Member
                • Jul 2007
                • 11

                #8
                help..!how to run the patch.sql script in zabbix-1.4.1/upgrades\dbpatch\1.4\mysql\patch.sql ???help me plz..!

                Comment

                • gescheit
                  Senior Member
                  • Jul 2007
                  • 156

                  #9
                  mysql -D zabbix -p < patch.sql

                  Comment

                  • bluesurfer
                    Junior Member
                    • Jul 2007
                    • 11

                    #10
                    when i did that, it says 'ERROR 1050 (42S01) at line 16: Table 'actions_tmp' already exists' y izit like tat??

                    Comment

                    • bluesurfer
                      Junior Member
                      • Jul 2007
                      • 11

                      #11
                      hi guys...right now i am importing data into database..the data is worth 3.9Gb or disk space...and its beenimporting since 3 days ago... it is a little too long to import data of this size?? i used this command

                      $mysql -uroot -p testzabbix < test_zabbix.sql


                      is it correct??Is the import time too long or what?

                      Comment

                      Working...