changes to templates not showing on server

After many attempts, i had to make changes to the core template files in directory plugins/woocommerce and it worked, for safety i then copied the woocommerce/templates to mytheme/woocommerce/templates and surprisingly it worked! strange but at least it did.

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