$attributes not defined in block.json PHP template for ACF blocks

It turns out ACF blocks provide the attributes in the $block variable available in the PHP file mentioned in renderTemplate property of block.json. So, in my case it was available as $block['title'].

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