Need help writing a $wpdb query

Is this what you’re trying to do?

// WP_Query arguments
$args = array (
    'post_type'              => array( 'project' ),
    'meta_query'             => array(
        array(
            'key'       => 'meta_key',
            'value'     => '%$query%',
        ),
    ),
);

// The Query
$query = new WP_Query( $args );

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