Modules/MySQL: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 4: Line 4:
The MySQL module provides access to MySQL servers. It is included with [http://files.mtasa.com/apps/1.0/dm/ml_devkit.tar.gz the original module SDK package].
The MySQL module provides access to MySQL servers. It is included with [http://files.mtasa.com/apps/1.0/dm/ml_devkit.tar.gz the original module SDK package].
=== Functions ===
=== Functions ===
<syntaxhighlight lang="lua">bool [[Modules/MySQL/MysqlCreate|mysqlCreate]] ( nil )</syntaxhighlight>
[[Modules/MySQL/MysqlCreate|mysqlCreate]]


<syntaxhighlight lang="lua">bool [[Modules/MySQL/MysqlOpen|mysqlOpen]] ( mysql, function, host, user, password, database name, port )</syntaxhighlight>
[[Modules/MySQL/MysqlOpen|mysqlOpen]]


<syntaxhighlight lang="lua">nil [[Modules/MySQL/MysqlDestroy|mysqlDestroy]] ( mysql )</syntaxhighlight>
[[Modules/MySQL/MysqlDestroy|mysqlDestroy]]


<syntaxhighlight lang="lua">bool [[Modules/MySQL/MysqlQuery|mysqlQuery]] ( mysql, function, query )</syntaxhighlight>
[[Modules/MySQL/MysqlQuery|mysqlQuery]]


<syntaxhighlight lang="lua">string [[Modules/MySQL/MysqlSafeString|mysqlSafeString]] ( string )</syntaxhighlight>
[[Modules/MySQL/MysqlSafeString|mysqlSafeString]]


[[Category:Modules]]
[[Category:Modules]]


[[ru:Modules/MySQL]]
[[ru:Modules/MySQL]]

Latest revision as of 17:57, 18 September 2016

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

mysqlCreate

mysqlOpen

mysqlDestroy

mysqlQuery

mysqlSafeString