Custom Archive – hide posts until a search is made?

Isn’t this easily to be achieved by checking if ?s= is set ?
You do have to output the results of this search on the same page, by using the post archive link as action url.

if ( isset( $_GET[s] ) {
// show posts
}

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