mysql55 does not 'add' to check config or restart service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IUS Community Project |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
While a package should not automatically enable a service to chkconfig, it should make it available to chkconfig. It would also seemingly make sense to restart the upgraded service:
rpm -Uvh
http://
http://
yum install yum-plugin-replace
yum install mysql-server
service mysqld start # do not touch chkconfig
# yum replace mysql --replace-with mysql55
Loaded plugins: replace, rhnplugin, security
Replacing packages takes time, please be patient...
WARNING: Unable to resolve all providers: ['config(mysql)',
'libmysqlclient
'libmysqlclient
'libmysqlclient
'libmysqlclient
'config(
This may be normal depending on the package. Continue? [y/N]
=======
Package Arch
Version Repository
Size
=======
Installing:
mysql55 x86_64
5.5.9-1.ius.el5 ius
7.4 M
mysql55-server x86_64
5.5.9-1.ius.el5 ius
12 M
Removing:
mysql x86_64
5.0.77-4.el5_5.4 installed
8.1 M
mysql-server x86_64
5.0.77-4.el5_5.4 installed
22 M
Installing for dependencies:
mysql55-libs x86_64
5.5.9-1.ius.el5 ius
1.2 M
mysqlclient15 x86_64
5.0.91-1.ius.el5 ius
1.7 M
[root@mysql55 ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.0.77 Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights
reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
mysql> Bye
[root@mysql55 ~]# chkconfig --list mysqld
service mysqld supports chkconfig, but is not referenced in any
runlevel (run 'chkconfig --add mysqld')
[root@mysql55 ~]# chkconfig --list | grep -i mysql
This does not seem to be the case if you upgrade to mysql55 manually instead of using yum-plugin-replace:
[root@mysql55 ~]# rpm -e --nodeps mysql mysql-server mysqld. log.rpmsave mysqld_ safe --datadir= /var/lib/ mysql /var/lib/ mysql/mysql. sock --log-error= /var/log/ mysqld. log /var/run/ mysqld/ mysqld. pid --user=mysql /var/lib/ mysql /var/run/ mysqld/ mysqld. pid external- locking --socket= /var/lib/ mysql/mysql. sock server. x86_64 0:5.5.9-1.ius.el5 set to be updated x86_64 0:5.0.91-1.ius.el5 set to be updated
warning: /var/log/mysqld.log saved as /var/log/
[root@mysql55 ~]# ps axuw | grep -i mysql
root 2016 0.0 0.5 63840 1316 pts/0 S 22:18 0:00
/bin/sh /usr/bin/
--socket=
--pid-file=
mysql 2066 0.0 9.1 188404 23996 pts/0 Sl 22:18 0:00
/usr/libexec/mysqld --basedir=/usr --datadir=
--user=mysql --pid-file=
--skip-
root 2092 0.0 0.3 61188 824 pts/0 S+ 22:19 0:00
grep -i mysql
[root@mysql55 ~]#
[root@mysql55 ~]#
[root@mysql55 ~]# yum install mysql55 mysql55-libs mysql55-server
Loaded plugins: replace, rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55.x86_64 0:5.5.9-1.ius.el5 set to be updated
--> Processing Dependency: mysqlclient15 for package: mysql55
---> Package mysql55-libs.x86_64 0:5.5.9-1.ius.el5 set to be updated
---> Package mysql55-
--> Running transaction check
---> Package mysqlclient15.
--> Finished Dependency Resolution
Dependencies Resolved
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ====== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======
Package Arch
Version Repository
Size
=======
Installing:
mysql55 x86_64
5.5.9-1.ius.el5 ius
7.4 M
mysql55-libs x86_64
5.5.9-1.ius.el5 ius
1.2 M
mysql55-server x86_64
5.5.9-1.ius.el5 ius
12 M
Installing for dependencies:
mysqlclient15 x86_64
5.0.91-1.ius.el5 ius
1.7 M
Transaction Summary ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======
=======
Install 4 Package(s)
Upgrade 0 Package(s)
Total download size: 22 M libs-5. 5.9-1.ius. el5.x86_ 64.rpm
| 1.2 MB 5.0.91- 1.ius.el5. x86_64. rpm
| 1.7 MB 5.5.9-1. ius.el5. x86_64. rpm
| 7.4 MB server- 5.5.9-1. ius.el5. x86_64. rpm
| 12 MB ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ...
Is this ok [y/N]: y
Downloading Packages:
(1/4): mysql55-
00:00
(2/4): mysqlclient15-
00:00
(3/4): mysql55-
00:02
(4/4): mysql55-
00:04
-------