I have question about how to connect local mysql db of another machine in same LAN. The scenario is we have 2 machines in LAN:
machine 1 :
IP : 127.0.0.1
local website name : https://127.0.0.1/demo_project1
mysql db name : demo1
machine 2 :
IP : 127.0.0.2
local website name : https://127.0.0.2/demo_project2
mysql db name : demo2
Can we do make db connection of https://127.0.0.1/demo_project1 to https://127.0.0.2/demo_project i.e demo2? It means both machine will working on same database.
Note :
- we have install on Xampp server on both machines.
- we can access https://127.0.0.2/demo_project2 of machine 2 from machine 1.