Why the search results are wrong in search posts form?

You can use the_search_query() to look at the last search query run by WordPress. https://codex.wordpress.org/Function_Reference/the_search_query

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