How to change the default location where new post gets stored?

I would look in permalink settings in your wp-admin dashboard.
That’s where you can alter url structures of your WordPress site including how post urls are determined.
I think that’s all you would need depending on your theme.

Permalink Settings

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