Access SQLite Database from another computer connected in LAN network

1,577 views
Skip to first unread message

YAABITECH

unread,
Jul 18, 2017, 5:02:52 AM7/18/17
to PHP Desktop
Hi Sir, 
I have a desktop application in phpdesktop chrome. It's working well in my PC. The application has a database in sqlite named Mydata.db and I want to connect 2 computers in LAN to access the common database. I have installed the software in both the system but I need to access any one database from both the computers. Please help me.

Czarek Tomczak

unread,
Jul 18, 2017, 5:26:40 AM7/18/17
to PHP Desktop
Create a shared network folder on one of the computers and put sqlite database inside that folder. Then configure sqlite on both computers to connect to that database file. Try also Google:

https://www.google.com/search?q=sqlite+database+window+shared+folder+network

YAABITECH

unread,
Jul 18, 2017, 6:08:39 AM7/18/17
to PHP Desktop
Thank you so much sir.

And if any other possibility to make such connections with another databases. Because when I browse, I saw that sqlite has many problems in shared network. So may I use any other open source database to use in a server-client like application in phpdesktop? 

i.e if I create a billing software, products and client details should be accessed from the common database.

Czarek Tomczak

unread,
Jul 18, 2017, 7:33:40 AM7/18/17
to PHP Desktop
PostgreSQL is free for commercial use and can be distributed with phpdesktop.

Czarek Tomczak

unread,
Jul 18, 2017, 7:36:32 AM7/18/17
to PHP Desktop
There is also a portable version of PostgreSQL that is easy to distribute with phpdesktop (with help of InnoSetup for example): https://github.com/garethflowers/postgresql-portable

YAABITECH

unread,
Aug 5, 2017, 5:00:50 PM8/5/17
to PHP Desktop
Sir,

Shall I use MySQL Community Server ( GPL Licensed ) in php chrome desktop application? 

I'm using php desktop chrome application for creating billing software in my local. So I need to store the data in some database. Shall I use MySQL Community server without packaging with my software. i.e. I will install MySQL separately on my client's computers. 

So in this way, is it possible to use the database without affecting the license terms, in php desktop chrome?

Czarek Tomczak

unread,
Aug 6, 2017, 3:18:51 AM8/6/17
to PHP Desktop
Yes, such use is allowed with GPL license.

Fares ABADOU

unread,
Sep 21, 2017, 3:31:50 PM9/21/17
to PHP Desktop
Just setup your application listen in pc ip adress and in the other pc make redirection to that ip

Simone

unread,
Dec 9, 2020, 4:49:00 PM12/9/20
to PHP Desktop
Dear Fares, could you explain me better, this concept?. Thank you in advance

Fares ABADOU

unread,
Jan 12, 2021, 6:23:26 AM1/12/21
to PHP Desktop
in you first computer settings.json file , change "listen_on" to your computer ip adress for ex (192.168.1.2) and port 3000
in second computer www/index.php file write  js code 
<script>
window.location.href = "http://192.168.1.2:3000";
</script>  

Cesar L. C.

unread,
Feb 18, 2021, 10:02:12 AM2/18/21
to PHP Desktop
Hi Czarek ... When will be included pdo_sqlcipher for Windows 7, 8, 10?
Thanks for an excellent project.
Reply all
Reply to author
Forward
0 new messages