How is WordPress manipulating the posts like there are folders?

Not sure if you are asking how to do this, but it’s a setting in Settings > Permalinks. You would select the Day and Name option. This should automatically format your Post articles in this format.

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