edit_comment capability for subscriber

Have you tried

$subscriber= get_role(‘subscriber’);
$subscriber->add_cap(‘edit_comment’);

NOTE
eidt_comment is only supported in verson 3.1 or later

This worked for me , hope it helps you!

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