WordPress Installation in Subfolder only works half

OK after doing some more research I found out that I had to change the configs for the NGINX files as well.

I simply had to add the following parameters before the last closing bracket

location /nameofnewsite {
        try_files $uri $uri/ /nameofnewsite/index.php?$args;
}

location ~ \.php$ {
        fastcgi_split_path_info ^(/nameofnewsite)(/.*)$;
}

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