XAMPP access the database from another computer

≡放荡痞女 提交于 2021-02-11 15:01:26

问题


I have 2 server/pc. In PC 1 I installed the XAMPP and in PC 2 this is where my database is installed. I am using Oracle Database 9i (very old version) on PC 2 and on PC 1 I am using PHP 7.3.9. I already enabled the extension for oracle (pdo_oci.dll).

Here is my database connection code:

new PDO('oci:dbname=backend;host=192.168.10.30;', 'sa', 'backendpass');

192.168.10.30 - is where the database is installed.

Is there a way to access database from PC 1 to PC 2?

来源:https://stackoverflow.com/questions/64674241/xampp-access-the-database-from-another-computer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!