How to protect content from public users and limit access to certain roles in WordPress 2023?

How to protect content from public users and limit access to certain roles in WordPress 2023?

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