LUA5 connect and write to mysql dbase
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

LUA5 connect and write to mysql dbase

Started by Stanton, 20 July, 2005, 22:40:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stanton

Hey guys, complete n00b here, please bear with me.

Ive been searching this forum for hours but cant seem to find the right information, im under the impression that LUA5 supports connections to mysql dbases? can anyone please point me to any information about this?

Im not looking to be spoon fed, and am more than willing to read up on the necessary info and learn what i need, but i am in need of a push in the right direction, lol.

What im looking at doing is writing a script that will sit in a hub and look for any kick/bans, and if so, write the information (user, date/time, reason) to the dbase for our mods to review.

Any help, guidance, information gladly received :)

contact info in profile.

Many Thanks
Stanton.

Ivan Von Girderboot

To my knoledge, LUA5 does not support MySQL or any ODBC Drivers.

There are ways around it, but it's not simple.  For instance, my chat all gets logged to a MySQL db, via a sql file that gets imported into MySQL via a command line.

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

Pothead

#3
BlueBear has recently posted a link to a Sqlite interface for PtokaX Lua.  So i suggest you use that.  
Or compile MySql including PXLua.lib and a LUA wrapper class.

bluebear

Yes, PxSQLite3 can be used.

I'm also looking into builing some Lua wrapper for MySQL. It will probably be LuaSQL.

I will create a thread, in "LUA & PtokaX-Scripting-Interface" wich you peeps can use to request extensions for ptokax.

The thread http://board.univ-angers.fr/thread.php?threadid=5448&boardid=5&styleid=1&page=1#1
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

bluebear

Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

SMF spam blocked by CleanTalk