Skip to content

mysql database

mtanksl edited this page Jan 29, 2025 · 3 revisions

Introduction

Edit the \mtanksl.OpenTibia.GameData\data\server\config.lua file to set the database type to mysql. Then set the host, port, user, password and name. Or use custom connection string setting overrideconnectionstring property with string value.

The DDL file is in \mtanksl.OpenTibia.Data.MySql\structure.sql.

Example

server = {
	...
	database = {
		type = "mysql",
		...
		host = "localhost",
		port = 3306,
		user = "root",
		password = "",
		name = "mtots"
	}
}