This will briefly discuss the issue about that should set the database auto increment to 1 or other number.
According to the official doc from ClearDB, it says this:
ClearDB uses circular replication to provide master-master MySQL support. As such, certain things such as auto_increment keys (or sequences) must be configured in order for one master not to use the same key as the other, in all cases. We do this by configuring MySQL to skip certain keys, and by enforcing MySQL to use a specific offset for each key used. The reason why we use a value of 10 instead of 2 is for future development.
So they set the auto_increment gap to 10 in purpose, which means that It is not allowed to set auto_increment to 1 unless specifing the keys by hard-coding.
Therefore, just running SET @@auto_increment_increment=1
would not work as normal.
So the right solution to solve the gap is to accept the existing rules. While this might sound a bit hush on those who insists on using 1 for auto_increment, however it is the default rules for using ClearDB
What I did to solve this solution is to add another tag which is not using auto_increment, such like name
,'entity_slug' to replace with using id