In a MySQL database table, I have a new user registry, the primary key of the table being an ID field. However, I may end up creating, even by accident, users with the same username.
For example, "joao.silva" can be registered for users named "João Carlos da Silva" and "João Silva Neto". However, the login will only work for one of them.
Is there any configuration that can be done in MySQL so that this table does not allow identical usernames?