Try this
ALTER TABLE `mytable`DROP PRIMARY KEY,CHANGE COLUMN oldname newname INT(11) DEFAULT NULL,ADD CONSTRAINT `mytable_newname_pk` PRIMARY KEY (`newname`)
Try this
ALTER TABLE `mytable`DROP PRIMARY KEY,CHANGE COLUMN oldname newname INT(11) DEFAULT NULL,ADD CONSTRAINT `mytable_newname_pk` PRIMARY KEY (`newname`)