Brazil's biggest MU Online portal — since 2003
Tutorial Intermediate Server

How to set up SQL Server for MU Online

Installation, database restore and permissions: the guide to get SQL Server ready for your MU Online server.

VI ViciadosMU Team · Updated on 30 jun 2026 · ⏱ 12 min read

SQL Server stores all the accounts, characters, guilds and items of your MU Online server. Without it set up correctly, MuServer simply won't start. Here's how to prepare it.

Nota: This tutorial covers the concepts and the order of steps. The database files come with the MuServer distribution you choose to study — ViciadosMU does not distribute files.

Step 1 — Install in mixed authentication mode

During SQL Server installation, choose Mixed Mode (Windows + SQL authentication) and set a strong password for the sa user. This mode is mandatory because MuServer connects using a SQL user and password.

Atenção: Never leave the sa password blank or default. Exposed servers with a weak sa are the number one target for intrusions.

Step 2 — Restore the database

With SQL installed, restore the database that comes with MuServer (usually a .bak file or .sql scripts):

  1. Open SQL Server Management Studio (SSMS);
  2. Connect with the sa user;
  3. Right-click Databases → Restore Database;
  4. Point to the backup file and confirm.

Step 3 — Create a dedicated user

For security, create a user just for the application (instead of using sa in MuServer):

CREATE LOGIN mu_app WITH PASSWORD = 'strong_password_here';
USE MuOnline;
CREATE USER mu_app FOR LOGIN mu_app;
EXEC sp_addrolemember 'db_owner', 'mu_app';

Step 4 — Validate the connection (ODBC)

MuServer talks to SQL via ODBC. Create a data source (DSN) pointing to the MuOnline database and test the connection. If the test passes, the server will be able to read and write data.

Dica: If you get a connection error when starting the GameServer, 90% of the time it's: SQL service stopped, wrong authentication mode, or DSN/ODBC pointing to the wrong database.

Summary

With SQL in mixed mode, the database restored, a dedicated user and ODBC validated, your server's foundation is ready. The next step is configuring MuServer to point to that database.

Perguntas frequentes

Which SQL Server version should I use for MU Online?

Versions like SQL Server 2008 R2 and 2014 are widely compatible with most MuServer distributions. The key is installing in mixed authentication mode.

What is mixed authentication?

It's the mode that allows login both via the Windows account and via SQL user and password (like 'sa'). MuServer needs this mode to connect to the database.

VI

ViciadosMU Team

Equipe editorial do ViciadosMU — portal de MU Online no ar desde 2003.

Keep reading

Related articles