Bots using internal wordpress search

I suggest using a security plugin which will do everything for you.
Like iThemes Security

Bans troublesome user agents, bots and other hosts

https://wordpress.org/plugins/better-wp-security/

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