Skip to content

postgresql database

mtanksl edited this page Jan 29, 2025 · 1 revision

Introduction

Edit the \mtanksl.OpenTibia.GameData\data\server\config.lua file to set the database type to postgresql. 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.PostgreSql\structure.sql.

Example

server = {
	...
	database = {
		type = "postgresql",
		...
		host = "localhost",
		port = 5432,
		user = "postgres",
		password = "",
		name = "mtots"
	}
}