2

I want an online storage that can connect with ComputerCraft in Minecraft. ComputerCraft is Lua-based. I have heard that you can not use MySQL in Lua.

Is there some sort of online database like MySQL that I can use in Lua without installing external programs? Because I only have access to Lua computers in-game, I cannot install an external program such as LuaSQL. Is there any other way?

Ryan Stein
  • 7,930
  • 3
  • 24
  • 38
user65130
  • 51
  • 3
  • Heard from whom? Whoever told you that was lying. http://stackoverflow.com/questions/3432864/lua-how-to-connect-query-mysql-from-within-lua – Wooble Jan 10 '14 at 14:41
  • ive looked at that, and now ive seen thishttp://www.keplerproject.org/luasql/, is there a way without installing other programs? because i dont have acces to the server which it runs on, only a computer ingame – user65130 Jan 10 '14 at 14:55

3 Answers3

1

No, you can't access a MySQL database in Lua (even ComputerCraft Lua) without third party extensions.

Colonel Thirty Two
  • 23,953
  • 8
  • 45
  • 85
0

you could build a file read/write script and serialize a table for you Data storage... its not the best way, but it is a way that would work

Alan Doyle
  • 98
  • 16
0

Since I am not that into web based database communication, i would guess you need an API which delivers chunks of information asked by HTTP/HTTPS Requests. And a webserver of course.

I played a bit with CouchDB in combination with a nodejs webserver to create a very lean API with database support. So this might make the cut. http://simonholywell.com/post/2011/10/getting-started-node-js-couch-db.html Speeking in terms of webserver, there are several webservices like heroku that give free servers for testing etc.

Also would be very though. In combination with Applied Energistics you could monitor storage or crafting times etc.

Steven David
  • 704
  • 7
  • 14