update_option does not work in this scenario – how do I fix?

I realised this was occurring because in my code, $log was a huge amount of text, therefore it appears there is a limit to what you can store in an option.

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