Update all posts in a loop everyday

Yes, WordPress has a cron system called WP Cron (which is not the same as a *nix cron). The idea is that your plugin would register a task (a WordPress action callback) that performs the desired logic (in your case, running the code that updates all the posts).

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