If the columns are not identical for other people, you can use below:
USE `old_database`; INSERT INTO `new_database`.`new_table`(`column1`,`column2`,`column3`) SELECT `old_table`.`column2`, `old_table`.`column7`, `old_table`.`column5` FROM `old_table`
source share