1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Multiple Worlds

Discussion in 'Help and Support' started by Hawanity, Jul 28, 2014.

  1. Hawanity

    Hawanity Level 1

    Joined:
    Nov 9, 2013
    Messages:
    14
    Is it possible to do Multiple Worlds?
    If not How can I 2 servers on diffrent ports and share the same data on both servers?
     
  2. bippity

    Plugin Developer

    Joined:
    Jan 14, 2012
    Messages:
    300
  3. Hawanity

    Hawanity Level 1

    Joined:
    Nov 9, 2013
    Messages:
    14
    Im already using MySQL :p
     
  4. bippity

    Plugin Developer

    Joined:
    Jan 14, 2012
    Messages:
    300
    Ah, in that case, maybe someone else in this community could help you out as I've never used MySQL :p
     
  5. Hawanity

    Hawanity Level 1

    Joined:
    Nov 9, 2013
    Messages:
    14
    Anyone can help me with that please?
     
  6. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Use 2 different server roots, and a MySQL database. The two servers both use the same database. Both servers must use different ports (eg., 1 on 7777, 1 on 7778)
     
  7. Hawanity

    Hawanity Level 1

    Joined:
    Nov 9, 2013
    Messages:
    14
    What Do I need to do to make both servers use the same database ( btw You mean the tshock.sqllite right?)
     
  8. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    sqlite is SQLite. You need to use MySQL. I'd recommend googling a bit about SQLite and MySQL so you understand the requirements
     
  9. Hawanity

    Hawanity Level 1

    Joined:
    Nov 9, 2013
    Messages:
    14
    I also have MySQL xD
     
  10. AquaBlitz11

    Plugin Developer

    Joined:
    Aug 20, 2013
    Messages:
    92
    Yes, with MySQL it's where it shared data with. So user accounts are stored there, groups there, many database tables there.
     
  11. Hawanity

    Hawanity Level 1

    Joined:
    Nov 9, 2013
    Messages:
    14
  12. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
    As mentioned by WhiteX you have no clue what you are talking about and should take a few hours to go learn the difference between sqlite and mysql. Then you would be familiar enough with the concepts that you shouldn't need our help telling you how to configure your two servers to use the same mysql db. Thanks!
     
  13. ☣RazzorWind☣

    Joined:
    Apr 23, 2015
    Messages:
    8
    Forgive me if I am doing something wrong(I am new to this forum), but how do I link the two server roots together? I tried having two Tshock servers open with different ports, and I linked them to the same MySql database. but the 2nd server gives me an error: http://pastebin.com/2x7fBGyi

    And sorry if this thread gets "Necro Bumped". I Don't attend to do that.
     
  14. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    You sure they're listening on different ports?
     
    • Agree Agree x 1
  15. ☣RazzorWind☣

    Joined:
    Apr 23, 2015
    Messages:
    8
    My apology's. I should have made an edit to my last comment last night. The port issue is fixed. Instead of using the server to change ports, I used the config file, which didn't work. So I have two servers on the same database. To be sure, On each server, I made a warp, and they both showed up In the MySQL's warps database directory. However, I may have misunderstood the thread question. I was looking for a sort of multi-world method. Now looking back at the post, I realized my mistake.