Community AlphaAlpha MUADMINS
VITiếng Việt
Đăng nhập
Trên MuADMINSĐóng gópGiúp một tay và nhận Community PointsMởTrên MuADMINSLịch sự kiệnBlood Castle, Devil Square, các cuộc xâm lăng trên một lưới tuầnMở
← Tất cả giải pháp

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

MuADMINS biên soạn từ nguồnNot 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).

Do MuADMINS biên soạn
Cách này có giúp được bạn không?

Vẫn còn vướng mắc? Tìm trên MuGPS Hỏi Trợ lý MU

MuADMINS Community Alpha: miễn phí, do cộng đồng xây dựng, đang được phát triển tích cực.