Difference between revisions of "MySQL"

From GExtension Wiki
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
To allow a connection to your database, you will need to install a MySQL module on your Garry's Mod server. There are two: MySQLoo and tMySQL (doesn't get updates anymore).
+
To allow a connection to your database, you will need to install a MySQL module on your Garry's Mod server.
  
Please not that you have to use different files, depending on the OS of your Garry's Mod server (Windows/Linux).
+
Please note that you have to use different files, depending on the OS of your Garry's Mod server (Windows/Linux).
  
 
==Installation==
 
==Installation==
#Download this file and upload it to the folder where the '''SRCDS''' application is located:
 
#*Windows: [https://puu.sh/1fhWu libmySQL.dll]
 
#*Linux: [https://github.com/syl0r/MySQLOO/raw/master/MySQL/lib/linux/libmysqlclient.so.18 libmysqlclient.so.18]
 
 
#Download this file and upload it to '''garrysmod/lua/bin''' (create it if it doesn't exist):
 
#Download this file and upload it to '''garrysmod/lua/bin''' (create it if it doesn't exist):
#*Windows: [https://github.com/syl0r/MySQLOO/releases/download/9.5/gmsv_mysqloo_win32.dll gmsv_mysqloo_win32.dll] '''(recommended)''' or [https://github.com/bkacjios/gm_tmysql4/releases/download/R1/gmsv_tmysql4_win32.dll gmsv_tmysql4_win32.dll] '''(outdated)'''
+
#*Windows: [https://github.com/FredyH/MySQLOO/releases/download/9.7.2/gmsv_mysqloo_win32.dll gmsv_mysqloo_win32.dll]
#*Linux: [https://github.com/syl0r/MySQLOO/releases/download/9.5/gmsv_mysqloo_linux.dll gmsv_mysqloo_linux.dll] '''(recommended)''' or [https://github.com/bkacjios/gm_tmysql4/releases/download/R1.01/gmsv_tmysql4_linux.dll gmsv_tmysql4_linux.dll] '''(outdated)'''
+
#*Linux: [https://github.com/FredyH/MySQLOO/releases/download/9.7.2/gmsv_mysqloo_linux.dll gmsv_mysqloo_linux.dll]
  
 
If you are not allowed to upload dll files, ask your hoster.
 
If you are not allowed to upload dll files, ask your hoster.
 +
 +
For Windows, the [https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads Visual Studio redistributable for 2019] may be required.

Latest revision as of 11:11, 24 December 2021

To allow a connection to your database, you will need to install a MySQL module on your Garry's Mod server.

Please note that you have to use different files, depending on the OS of your Garry's Mod server (Windows/Linux).

Installation

  1. Download this file and upload it to garrysmod/lua/bin (create it if it doesn't exist):

If you are not allowed to upload dll files, ask your hoster.

For Windows, the Visual Studio redistributable for 2019 may be required.