WordPress 4.2.3 on Windows Server 2008 R2 Creating Files as read only

I figured out the issue, my site had the following in wp-config.php. Also WP-config.php had to be placed at the site root

 define('FS_CHMOD_DIR', true );
 define('FS_CHMOD_FILE', true );
 define('FS_METHOD', 'direct');

Removing the above resolved the issue.

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