Community AlphaAlpha MUADMINS
VITiếng Việt
Đăng nhập
Trên MuADMINSConfig ScannerTải lên zip file của bạn: rate, rơi đồ, spot, giới hạnMởTrên MuADMINSGặp chúng tôi trên DiscordNhờ giúp đỡ, chia sẻ những gì bạn đang làm và trò chuyện về MU với các chủ server khác.Mở
← Tất cả giải pháp
Cài đặt serverIGCNS16, S17, S18

Why did IGCN CreateDatabase.sql delete my databases, and what must I change before running it?

MuADMINS biên soạn từ nguồnNot verified

Database\1. Full Scripts\CreateDatabase.sql starts with two switches:

  • DECLARE @DropExistingDatabases INT = 1: with 1 it DROPS existing databases named Me_MuOnline, MuOnline, Events, Ranking and BattleCore before creating them again.
  • DECLARE @Create_Me_MuOnlineDB INT = 1: creates Me_MuOnline, used "for purpose of Shared Accounts system".

Before running it:

  1. Never run it on a server that already has players. Back up every database first:
BACKUP DATABASE [MuOnline] TO DISK = N'C:\MUBackup\MuOnline.bak' WITH INIT;

(the same for Me_MuOnline, Events, Ranking, BattleCore).

  1. Set @DropExistingDatabases to 0 unless you really want empty databases.
  2. Every FILENAME line contains the placeholder <INSTANCE_NAME> (for example C:\Program Files (x86)\Microsoft SQL Server\<INSTANCE_NAME>\MSSQL\DATA\Me_MuOnline_Data.MDF): replace it with your real data folder or CREATE DATABASE fails with "Directory lookup for the file ... failed".
  3. The script creates each database with COLLATE SQL_Latin1_General_CP1_CI_AS. Change it here, before any table exists, if you need another code page (see the collation solution).

Source: IGCN Season 16, 17 and 18 Database/1. Full Scripts/CreateDatabase.sql (same 3408 byte file in the three packs).

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.