Is there any wordpress function to update a random post every 10 minutes?

You could use wp_schedule_event to schedule recurring tasks. The smallest precision it normally supports is “hourly” but you can use wp_get_schedules to create a custom “ten_minutes” interval.

Or, you could use wp_schedule_single_event to just trigger the event once and have that scheduled task schedule the next event ten minutes later.

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