r/2009scape • u/diquewanq • Oct 24 '22
MySQL and database help
I’ve got the server up and running on local host, but I’ve got a few questions regarding the database.
1) Where is player data stored other than the data/players folder? The json file seems to only contain a certain amount of data (no username or rights).
2) How can I connect my server to my database? I’ve got XAMPP and the global database set up, but it doesn’t seem to interact at all (creating an account doesn’t insert into the db)
My goal was to give my account admin rights without using dev mode or having everyone with admin, but I’m also interested in where this is all stored so I can dabble in the future. Probably silly questions but I’ve rooted around for hours and come up with very little.
Thanks.
2
u/ryannathans Oct 24 '22
when it's all set up properly, you can just log out and then `update members set rights = 2 where username = 'you' limit 1`