Oracle Linux had a lot of engineering hours inside it to drive the performance to new levels. But currently oracle Linux 6.4 comes with a dated version of MySQL, version 5.1.69. So how can you upgrade to 5.6 without losing your data?
First, make a backup just in case Murphy’s Law has a tort waiting for you.
Remove the old files. The rpm -qa | grep -i ^mysql
command will show you the packages to be removed. Then rpm
-e mysql-server-5.1.69-1.el6_4.x85_64
mysql-libs-5.1.69-1.el6_4.x86_64 and
mysql-5.1.69-1.el6_4.x85_64 to remove them.
Thirdly, download the big MySQL 5.6 bundle for Oracle Linux.
Untar the bundle and then a quick rpm -Uhv
MySQL-*.rpm will install the files.
There is ONE big difference. MySQL as
of 5.6, forces a default for the MySQL server and places it in
/root/.mysql_secret and you will see to set a new
password upon …