Why cannot author edit pages?

It was a simple thing when thinking of it… I needed to add:

$role->add_cap( 'edit_others_pages ' );

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