INSERT DATA FROM ONE DATABASE TABLE TO ANOTHER DATABSE TABLE IN SAME SERVER : I wrote This query useing MYSQL work bench for insert data into one database to another Datbase,But it doesn't work,can you help me to solve this problem

    USE att2000;
create trigger trgAfterInsert
after insert on CHECKINOUT for each row

INSERT INTO orangehrm_mysql.ohrm_attendance_record(employee_id,punch_in_utc_time) values(USERID,CHECKTIME);
SELECT 
    checkinout.USERID, checkinout.CHECKTIME
FROM
    CHECKINOUT
WHERE
HOUR(CHECKTIME) < 12;



INSERT INTO orangehrm_mysql.ohrm_attendance_record(employee_id,punch_out_user_time) values(USERID,CHECKTIME);
SELECT 
    checkinout.USERID, checkinout.CHECKTIME
FROM
    CHECKINOUT
WHERE
HOUR(CHECKTIME) >= 12;