Ad Widget

Collapse

Mysql db upgrade patch

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syquest
    Junior Member
    • Jan 2009
    • 10

    #1

    Mysql db upgrade patch

    Hello,

    i Have some problems with the mysql upgrade script...
    When i launch the command line : cat patch.sql |mysql zabbix -u<username> -p<password>

    I laways have this error : ERROR 1050 (42S01) at line 16: Table 'actions_tmp' already exists

    I have tried to remove the table with drop table in mysql but still have another similar error again with another table..

    Anyone can help ???

    Final goal is to upgrade zabbix from 1.1.7 to 1.6.1 can I do this without upgrading to 1.4 ?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Originally posted by syquest
    Final goal is to upgrade zabbix from 1.1.7 to 1.6.1 can I do this without upgrading to 1.4 ?
    No, you should upgrade to 1.4 first, then to 1.6.x.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • syquest
      Junior Member
      • Jan 2009
      • 10

      #3
      OK thanks.

      But how can I upgrade the mysql database I always have the error as desccribed above ???

      Comment

      • nelsonab
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2006
        • 1233

        #4
        First, I hope you did a backup of the database before you started... Otherwise it may be a challenge to unravel things and perform the upgrade.

        Start the mysql client and execute the following.

        drop table actions_tmp;

        WARNING!!!
        This will delete the table permenantly.

        If you need to get a list of tables execute the following:
        show tables;
        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

        • syquest
          Junior Member
          • Jan 2009
          • 10

          #5
          I have drop the tables with error et repatch but now I have this :ERROR 1054 (42S22) at line 38: Unknown column 'source' in 'field list'..

          Anyone got an idea ?

          Thanks

          Comment

          • nelsonab
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2006
            • 1233

            #6
            you likely have a schema mismatch.

            What steps are you doing? Have you also performed the intermediate upgrades? 1.1.x -> 1.4.x -> 1.6.x
            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

            • syquest
              Junior Member
              • Jan 2009
              • 10

              #7
              Anyone could list the fields of the table actions version 1.1.7 ?
              I have only 5 fields in this table : action_id, name, eventsources, evaltype, status.

              Thanks

              Comment

              • syquest
                Junior Member
                • Jan 2009
                • 10

                #8
                Originally posted by nelsonab
                you likely have a schema mismatch.

                What steps are you doing? Have you also performed the intermediate upgrades? 1.1.x -> 1.4.x -> 1.6.x

                I try to upgrade from 1.1.7 to 1.4 then 1.4 to 1.6.1

                Comment

                Working...