I have a problem with mysql duplicate error messages. On one of my machines the error looks like:
Duplicate entry 'foobar' for key 2
on the other machine it looks like:
Duplicate entry 'foobar' for name
- One machine prints the key index, the other the key name.
- One machine is an Ubuntu 10.04 Desktop; the other a Debian Lenny Server
- MySQL Versions:
Ubuntu: Server version: 5.1.41-3ubuntu12.6 Protocol version: 10
Debian: Server version: 5.0.51a-24+lenny1-log Protocol version: 10
Should this be really a version issue? Any suggestions how I can control this?