I'm creating a program that connects to a MySQL database online, and when I start it it creates a table with an index if it does not exist.
To check if everything is ok I am analyzing the database by phpMyAdmin from the server, but when I check the table structure in the index created by the program it shows that the cardinality is the same amount of records in the table as if nothing was optimized . But if I create a new index by phpMyAdmin the cardinality of the index created by the program correctly appears with the optimized value.
Why does this happen?