[root@dhcppc4 ~]# rpm -ivh Percona-Server-client-55-5.5.32-rel31.0.549.rhel6.x86_64.rpm Percona-Server-devel-55-5.5.32-rel31.0.549.rhel6.x86_64.rpm Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86_64.rpm Percona-Server-shared-55-5.5.32-rel31.0.549.rhel6.x86_64.rpm
Preparing... ########################################### [100%]
1:Percona-Server-shared-5########################################### [ 25%]
2:Percona-Server-client-5########################################### [ 50%]
/var/tmp/rpm-tmp.AGK0tb: line 105: [: /opt/mysql/dbdata1/test: binary operator expected
Your MySQL directory '/opt/mysql/dbdata1/test
/opt/mysql/dbdata1/test' has more than one PID file:
ls: cannot access /opt/mysql/dbdata1/test/*.pid: No such file or directory
drwx------. 4 mysql mysql 4096 Jul 17 18:36 /opt/mysql/dbdata1/test
Please check which one (if any) corresponds to a running server
and delete all others before repeating the MySQL upgrade.
error: %pre(Percona-Server-server-55-5.5.32-rel31.0.549.rhel6.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping Percona-Server-server-55-5.5.32-rel31.0.549.rhel6
3:Percona-Server-devel-55########################################### [ 75%]
[root@dhcppc4 ~]#
Tried to reproduce with CentOS 6.4 and Percona- Server- server- 55-5.5. 32
[root@dhcppc4 ~]# cat /etc/my.cnf dbprod/ test.pid dbprod/ test.sock dbdata1/ test dblogs1/ test/gen/ error.log
[mysqld]
#user = mysql
pid-file = /opt/mysql/
socket = /opt/mysql/
datadir = /opt/mysql/
log_error = /opt/mysql/
!includedir /etc/mysql/
[root@dhcppc4 ~]#
[root@dhcppc4 ~]# ll /etc/mysql config. cnf
total 4
-rw-r--r--. 1 root root 182 Jul 17 18:25 001-basic-
[root@dhcppc4 ~]# cat /etc/mysql/ 001-basic- config. cnf dbprod/ test.pid dbprod/ test.sock dbdata1/ test dblogs1/ test/gen/ error.log
[mysqld]
#user = mysql
pid-file = /opt/mysql/
socket = /opt/mysql/
datadir = /opt/mysql/
log_error = /opt/mysql/
[root@dhcppc4 ~]#
[root@dhcppc4 ~]# rpm -ivh Percona- Server- client- 55-5.5. 32-rel31. 0.549.rhel6. x86_64. rpm Percona- Server- devel-55- 5.5.32- rel31.0. 549.rhel6. x86_64. rpm Percona- Server- server- 55-5.5. 32-rel31. 0.549.rhel6. x86_64. rpm Percona- Server- shared- 55-5.5. 32-rel31. 0.549.rhel6. x86_64. rpm ####### ####### ####### ####### ####### # [100%] Server- shared- 5###### ####### ####### ####### ####### ####### ## [ 25%] Server- client- 5###### ####### ####### ####### ####### ####### ## [ 50%] rpm-tmp. AGK0tb: line 105: [: /opt/mysql/ dbdata1/ test: binary operator expected dbdata1/ test dbdata1/ test' has more than one PID file: dbdata1/ test/*. pid: No such file or directory dbdata1/ test Server- server- 55-5.5. 32-rel31. 0.549.rhel6. x86_64) scriptlet failed, exit status 1 Server- server- 55-5.5. 32-rel31. 0.549.rhel6 Server- devel-55# ####### ####### ####### ####### ####### ####### [ 75%]
Preparing... #######
1:Percona-
2:Percona-
/var/tmp/
Your MySQL directory '/opt/mysql/
/opt/mysql/
ls: cannot access /opt/mysql/
drwx------. 4 mysql mysql 4096 Jul 17 18:36 /opt/mysql/
Please check which one (if any) corresponds to a running server
and delete all others before repeating the MySQL upgrade.
error: %pre(Percona-
error: install: %pre scriptlet failed (2), skipping Percona-
3:Percona-
[root@dhcppc4 ~]#