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]...
[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
- duplicates
-
MDEV-5986 MariaDB upgrade on CentOS 6 fails due to sed error
- Closed
Thanks for the report.
The problem has been filed as
MDEV-5986and 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