How can I add an options page for my class based plugin?

try to change

 do_settings_sections('sample_section1');

to

 do_settings_sections('sample');

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