Community AlphaAlpha MUADMINS
ITItaliano
Accedi
Su MuADMINSConfig ScannerCarica lo zip dei tuoi file: rates, drop, spot, limitiApriSu MuADMINSIncontraci su DiscordChiedi aiuto, condividi quello che stai creando e parla di MU con altri proprietari di server.Apri
← Tutte le soluzioni

How do I back up and restore MU databases: which ones, in which order, and moving to a new PC?

Scritto da MuADMINS a partire dalla fonteNot verified

Back up every database of the server at the same moment (server closed), and restore them together:

  • IGCN: MuOnline, Me_MuOnline (if used), Events, Ranking, BattleCore
  • MuEmu, Louis, MSPro, X-Team: MuOnline (one database)
  • MuDevs: MuOnline and BattleCore
  • WebZen 97d: MuOnline and Ranking; Season 2 namech: MuOnline, MuOnline_Event, MuOnline_Ranking
  • DV-Team (MySQL): muonline and log (mysqldump)
  • plus the website database if your CMS uses its own (DmN keeps DmN tables in a separate web database)

Backup:

BACKUP DATABASE [MuOnline] TO DISK = N'C:\MUBackup\MuOnline.bak' WITH INIT;

(the folder must exist and the SQL Server service must be allowed to write there)

Restore on a new PC or as a test copy:

RESTORE FILELISTONLY FROM DISK = N'C:\MUBackup\MuOnline.bak';
RESTORE DATABASE [MuOnline_test] FROM DISK = N'C:\MUBackup\MuOnline.bak'
WITH MOVE 'MuOnline_Data' TO N'D:\SQLData\MuOnline_test.mdf', MOVE 'MuOnline_Log' TO N'D:\SQLData\MuOnline_test.ldf';

(use the logical names FILELISTONLY shows). Rules: the target SQL Server must be the same version or newer; old WebZen SQL 2000 backups need 2005 / 2008 / 2008 R2 first. After a restore, recreate the ODBC DSN (MuEmu based files) or IGCDS.ini [SQL] names (IGCN), and re-link a non sa SQL user if it shows as orphaned.

Source: database lists of IGCN CreateDatabase.sql, MuDevs Create Scripts, 97d / Season 2 packs, DV-Team dumps, DmN CMS setup; version rules in the MuADMINS SQL guide research (sql_facts).

Scritto da MuADMINS
Ti è stato utile?

Non hai ancora risolto? Cerca su MuGPS Chiedi all'Assistente MU

MuADMINS Community Alpha: gratuito, fatto dalla community, in sviluppo attivo.