why esc_url not working in smartmetabox

esc_url() is not a validator. Use PHP’s filter functions for that.

Example:

// $url is now an URL or FALSE
$url = filter_var( 'http://example.com', FILTER_VALIDATE_URL );

if ( $url )
    # update post meta
else
    # delete post meta

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