How would I create a Password Protected Page with Content on it?

On a page or post,

Under the right sidebar “Publish” Click Visibility –> Edit –> Select password protected, set the password.

If you want only partial protection, say only some content, you will need a plugin.

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