Modules/Squirrel/lu mysql
From Liberty Unleashed Wiki
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.