Rate limiting ajax requests in WordPress

I have setup the google recaptcha in form once form submitted I’ll validate the recaptcha in the ajax request in functions.php. So spam requests are neglected.

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