If searched in a category show different 404 page

You can either change the code of your 404.php to conditionally show other stuff with is_search() { ... } or you can use the search.php Template.

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