How to connect to mysql on same server through different account ?

kikloo

Verified User
Joined
Jul 17, 2019
Messages
73
Hi,

I have 2 sites / accounts on same DA server.

One site abc.com has mysql database.

Site #2 xyz.com has to connect to mysql database on abc.com

I'm doing the following on xyz.com:

$db_host = "localhost";
$db_user = "abc_site";
$db_pass = "SomePass!!!ord";
$db_name = "abc_site";

But its not connecting. The same settings works on abc.com but on xyz.com its not connecting to abc database.

How to connect to the database on the same server but of other account ???

Thanks.
 
Back
Top