This directive is used to add ON DUPLICATE KEY UPDATE clause which updates an already existing row when the new row has the same value for a PRIMARY KEY or a UNIQUE index. It does not perform any TRUNCATE operation before importing.
So, obviously the text is misleading. I suggest to change the text.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What about changing "Replace table data with file" to "Update data when duplicate keys found on import (add ON DUPLICATE KEY UPDATE)" -- is that too long? Maybe a shorter form: "Update data with ON DUPLICATE KEY UPDATE"?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This directive is used to add ON DUPLICATE KEY UPDATE clause which updates an already existing row when the new row has the same value for a PRIMARY KEY or a UNIQUE index. It does not perform any TRUNCATE operation before importing.
So, obviously the text is misleading. I suggest to change the text.
Looks like there are three places to change this.
What about changing "Replace table data with file" to "Update data when duplicate keys found on import (add ON DUPLICATE KEY UPDATE)" -- is that too long? Maybe a shorter form: "Update data with ON DUPLICATE KEY UPDATE"?
I think the former one is more clearer. I'm changing now.
It looked little too long for the settings page. How about https://github.com/phpmyadmin/phpmyadmin/pull/1663
Directive clarified in https://github.com/phpmyadmin/phpmyadmin/commit/1663995c59bb989b43f7b91736c147abd6358fa2