WordPress theme settings not saving

$options = get_option( 'textdomain_settings' );
    ?>    
<input type="checkbox" name="textdomain_settings[textdomain_checkbox_field_0]" <?php checked( $options['textdomain_checkbox_field_0'], 1 ); ?> value="1">
<?php

Use this settings under Callback Field Function or you can generate code form here for settings api directly.

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