Alter table inner workings

There’s lots of info on the Internet about what the ALTER TABLE instruction does, but how does ALTER TABLE actually work? Which part(s) of the MySQL source code can describe what happens?

There is no short answer to this question. I’d suggest to start reading from: