[character] - this is the name of the constraint, if it is specified, MySQL will create a foreign key and index with the name [character] ; in this case, [index_name] is ignored.
The second [index_name] is the name of the index. This index is created automatically. If the [character] parameter is omitted, the foreign key will be called the server, and the index will be called [index_name] .
source share