Jump to content

is this possible?


Fury

Recommended Posts

Posted

What do you mean? You want to run two servers with the same internal database or what? Or a server with two internal databases?

I don't think neither of these are possible, because the database changes every time you query it. Of course if you have made a Windows batch file and make it look for changes every now and then and then copy and paste the file to the second server, it might work, but do not think it's a good idea. It's the -worst- idea.

You should use MySQL for such things.

If I helped you, please click the like button on the right ;) Thanks!

Posted
is this possible to run 2 run server in one internal.db?

Put the same file in the other server

That's not running two servers with one internal.db, it will be two internal.db anyway.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

  • 2 weeks later...
Posted
I don't know, and I think he means the former. SQLite does support concurrency (http://www.sqlite.org/lockingv3.html), so it's technically possible to use the same database file for both servers.

can you give me one example i really dont understand.

can i change internal.db's path?

Destruction Derby

Posted
No, if you want to share a DB with another host, you MUST use MySQL. MTA internal .db is only for the current server that is running it.

i want to share internal.db with server in same host. its not on the another host.

edit: what about this? https://wiki.multitheftauto.com/wiki/DbConnect

test_db = dbConnect( "sqlite", ":/example/sub/dir/file.db" ) 

Destruction Derby

Posted
You can't use SQLite with 2 or more servers. Only MySQL can do.

oh, okay. is there any MySQL tuttorial for mta sa?

Destruction Derby

Posted
You can't use SQLite with 2 or more servers. Only MySQL can do.

oh, okay. is there any MySQL tuttorial for mta sa?

There may be more, found this:

https://forum.multitheftauto.com/viewtop ... 48&t=42067

And now Aurora is back again, pm for more info.

Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA.

Ex. Developer at Community of Social Gamers - CSG

Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP

9o6E8.png Ab-47

Posted

It's the same thing as SQLite pretty much when it comes down to functions.

If I helped you, please click the like button on the right ;) Thanks!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...