Install MySQL 5.6 on CentOS 6.3 gone WRONG

Nyxynyx asked:

I am trying to install MySQL 5.6 on CentOS 6.3 64bit using the .rpms provided by MySQL. I downloaded all the 64bit linux rpms into /usr/local/src/mysql and performed rpm -Uvh *.

The installation gave an error which I cant find out the error msg anymore. So I tried doing rpm -Uvh * again and it says

Preparing...                ########################################### [100%]

package MySQL-devel-5.6.6_m9-1.linux2.6.x86_64 is already installed
package MySQL-embedded-5.6.6_m9-1.linux2.6.x86_64 is already installed
package MySQL-shared-compat-5.6.6_m9-1.linux2.6.x86_64 is already installed
package MySQL-shared-5.6.6_m9-1.linux2.6.x86_64 is already installed
package MySQL-client-5.6.6_m9-1.linux2.6.x86_64 is already installed

Doing rpm -e MySQL* states that they are all not installed:

error: package MySQL-client-5.6.6_m9-1.linux2.6.x86_64.rpm is not installed
error: package MySQL-devel-5.6.6_m9-1.linux2.6.x86_64.rpm is not installed
error: package MySQL-embedded-5.6.6_m9-1.linux2.6.x86_64.rpm is not installed
error: package MySQL-server-5.6.6_m9-1.linux2.6.x86_64.rpm is not installed
error: package MySQL-shared-5.6.6_m9-1.linux2.6.x86_64.rpm is not installed
error: package MySQL-shared-compat-5.6.6_m9-1.linux2.6.x86_64.rpm is not installed

I tried starting mysql with /etc/init.d/mysql start and /etc/init.d/mysqld start but the error returned was no such file or directory.

I tried rpm --rebuilddb and tried installing and removing but get the same error.

I’m kind of stuck now as to what to do next. Any suggestions?


Update

I managed to get mysql installed by uninstalling and reinstalling the rpm.

Now when I try to start mysql,

/etc/init.d/mysql start
Starting MySQL.The server quit without updating PID file (/[FAILED]mysql/localhost.localdomain.pid).`

I tried mv /etc/my.cnf /etc/my.cnf.bak and /etc/init.d/mysql start but that gave the same error.

My answer:


The packages are probably installed, but if they’re the ones you downloaded from mysql.com then the actual package names are in all lowercase, even though the file names are in mixed case.

With that out of the way, the mysql.com packages are not 100% binary compatible with CentOS and a lot more than this will likely break. If you don’t absolutely need 5.6 then it’s probably best to use 5.5 from a trustworthy repo such as remi, until such time as compatible packages become available.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.