WordPress caching in development

The problem was to do with MAMP turning on OPCache by default:

https://stackoverflow.com/questions/19073270/stop-caching-for-php-5-5-3-in-mamp

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