Hiya,
I am unsure what model of mixer you have but if you have a tilt head 4.5QT mixer then the below link should be able to help you with removing and replacing your power cord:
https://www.youtube.com/watch?v=eopZsrdCTOo
I hope this helps :-)
KaParts, February 2020