I have this query, and I think it talks by itself:
mysql> select id,email from members where email LIKE "%abraham.sustaita@gmail.com%";
+--------+----------------------------+
| id | email |
+--------+----------------------------+
| 272118 | abraham.sustaita@gmail.com |
+--------+----------------------------+
1 row in set (0.69 sec)
mysql> select id,email from members where email = "abraham.sustaita@gmail.com";
Empty set (0.00 sec)
mysql> select id,email from members where id = 272118;
Empty set (0.00 sec)
The data exists, but it returns empty if I use other than LIKE…
When there is such a flagrant impossible sequence of queries, then it’s time to think about a table (or index) corruption and to run the Mysql
CHECKcommand.In that case, running
REPAIR TABLE members QUICKdid the trick.