Change WordPress prefix for only one table?

In wp-config.php for your second site, define the following two constants:

define('CUSTOM_USER_TABLE', 'yourfirstprefix_users');
define('CUSTOM_USERMETA_TABLE', 'yourfirstprefix_usermeta');

You’ll have to add some custom logic to your second site limiting logins by user role.

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