Adding labels to Setting titles with API

You need to pass last parameter $args, if you want add_settings_field to output <label> use `label_for’ argument, see code snippet below

<?php add_settings_field( 'my-id', 'Test Filed', 'mamaduka_test_field', 'general', 'my-section', array( 'label_for' => 'my-test-field' ) ); ?>

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