Setting Permalinks in wp_config or functions file?

You can customize permalink by using WordPress Rewrite_API in function file.
See on codex

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