[MDEV-6010] MariaDB update from RPM/YUM repo failed Created: 2014-04-02  Updated: 2014-04-02  Resolved: 2014-04-02

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.10
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Andrew Sitnikov Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

CentOS 5.9


Issue Links:
Duplicate
duplicates MDEV-5986 MariaDB upgrade on CentOS 6 fails due... Closed

 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.



 Comments   
Comment by Elena Stepanova [ 2014-04-02 ]

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

Generated at Thu Feb 08 07:08:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.