Modules/MTA-MySQL: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (The mistake is in another part. Maybe the directory for mta_mysql.dll should be in server/modules)
mNo edit summary
Line 4: Line 4:
   author        = [[User:ryden|Alberto Alonso (ryden)]] |
   author        = [[User:ryden|Alberto Alonso (ryden)]] |
   module_website = ''Not available'' |
   module_website = ''Not available'' |
   download_link  = [http://dan.bastage.net/mta/MTA-MySQL-0.41.rar Here] |
   download_link  = [http://code.google.com/p/multitheftauto-modules/downloads/list Here] |
   license        = [http://www.opensource.org/licenses/bsd-license.php BSD]
   license        = [http://www.opensource.org/licenses/bsd-license.php BSD]
}}
}}

Revision as of 20:54, 6 August 2010

Module info
Name MTA MySQL
Version 0.41
Author Alberto Alonso (ryden)
Module website Not available
Download link Here
License BSD
Written in {{{written_in}}}
Operating system {{{operating_system}}}
Compatible with {{{compatible_with}}}

MTA MySQL is an alternative to the default ml_mysql module provided by the MTA team. It is available for Windows and GNU/Linux and provides the source code.

Note: From version 0.4 it supports both DP2.3 and 1.0 servers.

Installation

Windows

Uncompress the file mta_mysql.dll into your C:\Program files\MTA San Andreas\server\mods\deathmatch\modules\ directory and the file libmysql.dll into your C:\Program files\MTA San Andreas\server\ directory.

Then, add the following line in mtaserver.conf:

  <module src="mta_mysql.dll" />

GNU/Linux

Uncompress the file mta_mysql.so in the mods/deathmatch/modules/ directory.

Then, add the following line in mtaserver.conf:

  <module src="mta_mysql.so" />

If you experience an error on Unix systems: Try to add port and socket parameters to your mysql_connect.

Linux 1.0.3+ servers

It appears that the current version does not work with the 1.0.3 linux servers, a recompiled MTA-MySQL.so is available for download here: http://forum.multitheftauto.com/download/file.php?id=217

Handler functions

Result managing functions