I'm trying to create a cron job through php that has mysql queries (NOT for backup purposes), and want it to copy two specific columns from a table from one database to another (the two databases are on the same server, but has different connections).
I've tried
insert into newDB.your_table select * from oldDB.your_table;
but that didn't work for some reason and i want it to be specific to 2 columns only.
Any help, code, example, tutorial would be much much appreciated.
Thank you for time.