Modules/Squirrel/lu mysql
From Liberty Unleashed Wiki
(Difference between revisions)
m (Updated a template link) |
m (Fixed 2 broken links and added a missing one) |
||
Line 4: | Line 4: | ||
version = 1.0 | | version = 1.0 | | ||
author = Juppi <small>(packaged by Stormeus)</small> | | author = Juppi <small>(packaged by Stormeus)</small> | | ||
− | platform = Windows | | + | platform = Windows, Linux | |
website = [http://forum.liberty-unleashed.co.uk/index.php?topic=917.msg5663#msg5663 LU Forum Thread] | | website = [http://forum.liberty-unleashed.co.uk/index.php?topic=917.msg5663#msg5663 LU Forum Thread] | | ||
− | download = [http:// | + | download = [http://lu-modules.googlecode.com/files/lu_mysql.win.zip Windows Binary] |
+ | |||
+ | [http://code.google.com/p/lu-modules/downloads/detail?name=lu_mysql.linux.zip&can=2&q= Linux Binary] | ||
+ | |||
+ | [ftp://ftp.vicelegends.com/Scriptfiles/Modules/MySQL/mysql_src.zip Source] | | ||
}} | }} | ||
Revision as of 04:45, 19 November 2012
lu_mysql | |
Type | Squirrel module |
Version | 1.0 |
Author | Juppi (packaged by Stormeus) |
Platform | Windows, Linux |
Website | LU Forum Thread |
Download link | Windows Binary |
Contents |
lu_mysql is a third-party, community module which provides Squirrel functions to read from and write to MySQL databases. For an SQLite related tutorial, check here. This can help you learn basic SQL.
Installation
Make sure you have the lu_mysql.dll file in your Modules folder and the libmysql.dll file in your server folder. After that, add the following code under the event onScriptLoad of the script:
LoadModule( "lu_mysql" );
Functions
These functions are provided by the third-party module lu_mysql.
- mysql_connect
- mysql_close
- mysql_query
- mysql_num_rows
- mysql_num_fields
- mysql_fetch_row
- mysql_fetch_assoc
- mysql_fetch_lengths
- mysql_free_result
- mysql_errno
- mysql_error
- mysql_ping
- mysql_escape_string
- mysql_select_db
- mysql_change_user
- mysql_warning_count
- mysql_affected_rows
- mysql_insert_id
- mysql_info
Version History
- 1.0 - Initial release.