API calls on plugin activation or init?

on the plugin activation hook, instead of doing everything right there just set a cron job that will do it.

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