I am using Webmin on an Idaq hosting package to manage my MySQL database. I have imported the database from a previous host and now find that I cannot alter any data that is in a particular table because of an error "Data in this table cannot be edited because it has no primary key."
In a php script I can alter data but really need to alter it from the control panel.
When I try and create a primary key field I get the following error "Failed to save field : SQL alter table userbase
add referenceNumber
smallint not null auto_increment failed : Incorrect table definition; there can be only one auto column and it must be defined as a key"
I am well aware that any table should contain a primary key and this is my mistake , but can anyone offer some help please ?