Skip to content

mysql database

mtanksl edited this page Sep 18, 2023 · 3 revisions

Introduction

Edit the \server\config.lua file to set the database type to mysql. Then set the host, port, user, password and name.

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

Example

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