How to Insert data with wp cron

First you can to create a schedule for one minute, then bind function with that hook.

function add_new_intervals($schedules) 
{
    // add weekly and monthly intervals
    $schedules['every_single_minutes'] = array(
        'interval' => 60,
        'display' => __('Every Minute')
    );
    return $schedules;
}
add_filter( 'cron_schedules', 'add_new_intervals');

// To schedule event for this minute event
wp_schedule_event( current_time( 'timestamp' ), 'every_single_minutes', 'my_every_minute_event');

//add_action('my_every_minute_event', '_Func_to_execute_');

check this quick reference for details

Thanks

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)