phpmyadmin/ mysql how to copy a table with all its constraints
Within phpMyAdmin, if you go to the table you wish to copy and click the "Operations" tab, there should be a section "Copy table to (database.table)"

Here you will be able to copy the table with the same constraints as the table you are trying to copy.