Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6010

MariaDB update from RPM/YUM repo failed

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.0.10
    • None
    • None
    • None
    • CentOS 5.9

    Description

      prm pre script failed with error:

      sed: invalid option – 1
      Usage: sed [OPTION]...

      {script-only-if-no-other-script}

      [input-file]...

      This line is wrong:
      installed=`echo "$installed"|sed -n -1p`

      sed --version
      GNU sed version 4.1.5
      Copyright (C) 2003 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions. There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
      to the extent permitted by law.

      Attachments

        Issue Links

          Activity

            Thanks for the report.
            The problem has been filed as MDEV-5986 and will be fixed in the next release.
            Meanwhile, please use the remove/install path as the script output suggests, it is not bad general advice for installing the first GA version anyway, although in many cases upgrade should be possible.

            A manual upgrade is required.
             
            - Ensure that you have a complete, working backup of your data and my.cnf
              files
            - Shut down the MySQL server cleanly
            - Remove the existing MySQL packages.  Usually this command will
              list the packages you should remove:
              rpm -qa | grep -i '^mysql-'
             
              You may choose to use 'rpm --nodeps -ev <package-name>' to remove
              the package which contains the mysqlclient shared library.  The
              library will be reinstalled by the MariaDB-shared package.
            - Install the new MariaDB packages 
            - Ensure that the MariaDB server is started
            - Run the 'mysql_upgrade' program

            elenst Elena Stepanova added a comment - Thanks for the report. The problem has been filed as MDEV-5986 and will be fixed in the next release. Meanwhile, please use the remove/install path as the script output suggests, it is not bad general advice for installing the first GA version anyway, although in many cases upgrade should be possible. A manual upgrade is required.   - Ensure that you have a complete, working backup of your data and my.cnf files - Shut down the MySQL server cleanly - Remove the existing MySQL packages. Usually this command will list the packages you should remove: rpm -qa | grep -i '^mysql-'   You may choose to use 'rpm --nodeps -ev <package-name>' to remove the package which contains the mysqlclient shared library. The library will be reinstalled by the MariaDB-shared package. - Install the new MariaDB packages - Ensure that the MariaDB server is started - Run the 'mysql_upgrade' program

            People

              Unassigned Unassigned
              sitnikov Andrew Sitnikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.