Custom permalink structure gives 404

Yes, the correct tag is %monthnum%. Here’s a list of all the default rewrite tags, for reference.

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