mysql> INSERT IGNORE INTO trickyTable (id) VALUES (1); Query OK, 0 rows affected (0.00 sec) mysql> SELECT * FROM trickyTable; Empty set (0.00 sec)
That’s odd – what happened to the row?
I have the necessary privileges:
mysql> SHOW GRANTS; +---------------------------------------------------+ | Grants for root@localhost | +---------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' | +---------------------------------------------------+ 1 row in set (0.00 sec)
The table exists:
mysql> SHOW TABLES; +------------------------+ | Tables_in_example | +------------------------+ | trickytable | +------------------------+ 1 row in set (0.00 sec)
The field is there and adequately typed for the value:
mysql> DESCRIBE trickyTable; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | id | int(11) | YES | | NULL | | +-------+---------+------+-----+---------+-------+ 1 row in set (0.02 sec)
Not using BLACKHOLE, and no transaction tricks:
mysql> SELECT engine FROM information_schema.tables WHERE table_name = 'trickyTable'; +--------+ | engine | +--------+ | MyISAM | +--------+ 1 row in set (0.00 sec)
No triggers to make things tricky:
mysql> SELECT * FROM information_schema.triggers WHERE event_object_table = 'trickyTable'; Empty set (0.00 sec)
Just take my word for it that I’m not using Proxy, and this has nothing to do with replication.

Leave a Reply