Custom user role doesn’t show up in admin

There is nothing else required, it (should) work just fine with the code you posted. I’ve given this a quick test to confirm it is working and it does. So I’m assuming there is another problem somewhere.

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