How do I enable the admin form for a custom widget that is called in a sidebar template, not to widget area?

How do I enable the admin form for a custom widget that is called in a sidebar template, not to widget area?

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