Get data from wp_posts of mysql in to variables of wordpress-php script

Use the get_post (see: get_post reference) to get a post like $post = get_post(1); and then say: $post->post_status

— EDIT

Or even better use the get_post_status (see: get_post_status) like $post_status = get_post_status(1);

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