Looking for a wordpress referral plugin that counts the referral after an action is performed [closed]

Setup a cookie once a user referred by someone joins your website. Then once someone performs an action, check if he has that cookie and register it as a referral. You can use JavaScript to setup the cookie.

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