This is what I tried but it fails:
alter table goods add column `id` int(10) unsigned primary AUTO_INCREMENT;
Does anyone have a tip?
Use this query,
alter table `table_name` add primary key(`column_name`);