Redirect from plugin created page

What you can do is save the ID of page you programatically created in options table.

add_option( 'my_plugin_dynamic_page_id', YOUR_PAGE_ID_HERE);

Now you can get the page you created easily anytime you want. Following way.

$pageID = get_option( 'my_plugin_dynamic_page_id', true);

Then you can get the permalink to the page once you get the page ID. And redirect user to the permalink.

$permalink = get_permalink($pageID);
wp_redirect( $permalink );
exit;

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