is it possible to connect to another server's database with php? Like I have Website A thats got Database A and on this website I want to load something from a Database B of Website B. Of course I got the connection data!
its simple all thise above techniques are quite complicated
suppose you have database on server B and website on server A(say it has IP 192.234.12.1)
on cpanel whitelist the IP of server B
and create a new user having sufficient privileges in database (say this user is test)
then create this user as test@192.234.12.1
Gotten from how to connect to database on another server
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.