Access denied unless I add trailing /

I found the answer, I am putting it here incase it might be useful for someone:

change: location /blog into location /blog/

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