How to share plugin created database tables between two WordPress sites

I realized that all you have to do is find where the database is returned (in my case it is wp-init.php) and change the prefix to reflect the shared database:

$wpdb->prefix="wp_";

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