Modules/Squirrel/lu mysql
From Liberty Unleashed Wiki
(Difference between revisions)
m (Fixed 2 broken links and added a missing one) |
(→Installation) |
||
Line 19: | Line 19: | ||
== Installation == | == 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 [[Squirrel/Server/Events/Misc/onScriptLoad|onScriptLoad]] of the script: | + | Make sure you have the ''lu_mysql.dll'' or '''lu_mysql.so''' file in your ''Modules'' folder and for windows servers the ''libmysql.dll'' file in your server folder. After that, add the following code under the event [[Squirrel/Server/Events/Misc/onScriptLoad|onScriptLoad]] of the script: |
<code lang="squirrel">LoadModule( "lu_mysql" );</code> | <code lang="squirrel">LoadModule( "lu_mysql" );</code> | ||
Revision as of 12:33, 21 June 2013
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 or lu_mysql.so file in your Modules folder and for windows servers 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.