how to show the data from a myqsl database in a post [closed]

use:
$myrows = $wpdb->get_results( “SELECT id, name FROM mytable” );

then use $myrows in for or foreach loop.

Reference WP wpdb class:

http://codex.wordpress.org/Class_Reference/wpdb

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