I have a problem with a replica. We have 2 servers in a master-master circular replication and each of them has some slaves. All these are mysql 5.0 servers. We now decided to upgrade to mysql 5.6 to take advantage of it’s improvements but we run into an issue. We upgraded one of the slaves to 5.6 and we have a problem because the 5.6 slave doesn’t seem to be using the indexes when executing the statements (we are not yet using row based replication). Any idea what could be the problem or how to debug this issue?
What i could add is that some indexes are on varchar fields using latin1 with latin1_general_ci collation and we are using also local variables. Checking with mysqlbinlog i can see those variables appear in the relay log. Here is an example:
SET @trId:=_latin1 0x3065376231633363656562383130333039623235343830623630633061 336564 COLLATE latin1_general_ci/!/;
However the update query using this variable is not using the index. Any ideas?
I just realized that i did not answer your question
No we are not using Percona Server but mysql server version 5.0.45 on the master and myqsl server 5.6.10. Both are x64 running on CentOS 6.3 and are installed from RPM.
Do you have any suggestions? I still didn’t figure out what could be the issue I really see no logic behind this and i can’t understand why the index is not being used…