How to add an entry to the Page/Post Settings Sidebar? [duplicate]

This question has already been posted and answered:

Follow Get a Sidebar up and Running from the WordPress doc, but use PluginDocumentSettingPanel instead of PluginSidebar.

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