Modules/MySQL: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(This module is now outdated, with the new db* functions)
mNo edit summary
Line 1: Line 1:
{{Outdated|MTA now supports MySQL database natively via the db* functions.}}
{{Outdated|MTA now supports MySQL databases natively via the db* functions.}}
'''Available for Windows and Linux servers'''
'''Available for Windows and Linux servers'''



Revision as of 05:04, 26 November 2011

Dialog-information.png This article is (partially) outdated and the information may no longer apply.

Reason: MTA now supports MySQL databases natively via the db* functions.

Available for Windows and Linux servers

The MySQL module provides access to MySQL servers. It is included with the original module SDK package.

Functions

bool mysqlCreate ( nil )

bool mysqlOpen ( mysql, function, host, user, password, database name, port )

nil mysqlDestroy ( mysql )

bool mysqlQuery ( mysql, function, query )

string mysqlSafeString ( string )