[Guide] Delete / Truncate MuLog

ReaL

New Member
Joined
Apr 13, 2008
Messages
1,244
Reaction score
654
Your MuLog file (DB LDF File) has become 1 - 2 or even 3 GB, u don't need it and it's only bumping space on your hard drive... Or may be your HDD is set to FAT32 and 1 file can't be more than 4GB and u can't run the server! Then do this and it will become 1 MB:

1. Open SQL Query Analyzer
Start > All Programs > Microsoft SQL Server > Query Analyzer
2. Type your SQL password
3. Copy - Paste this query in the blank field:

Code:
USE master
    backup log [MuOnline] with truncate_only
    dbcc shrinkdatabase([MuOnline],0)
4. Press F5 (Execute the query)

Now the "muonline_Log.LDF" is only 1024 KB and it will not grow...
Enjoy! :bigsmile:

By DarksTeam
 

ProHouse

New Member
Joined
Apr 28, 2008
Messages
57
Reaction score
0
Добре де ама на мене папката ExDB ми става все по голяма а не този файл как мога нея да оправи???
 

Mephisto

New Member
Joined
Apr 10, 2008
Messages
451
Reaction score
240
В muserver/ всичко завършващо на .log му вкарваш по едно Delete
 

FreestyleR

New Member
Joined
May 14, 2008
Messages
129
Reaction score
19
Надявам се и това да ви свърши работа, за триене на логове :) бат файл ... ::):
 

Attachments

Gasolincho

Well-Known Member
Joined
May 15, 2008
Messages
682
Reaction score
690
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

99b+, and log still big...
 
  • Like
Reactions: enduwe

ReaL

New Member
Joined
Apr 13, 2008
Messages
1,244
Reaction score
654
Ако DBCC командите извеждат грешки, липсва driver на MsSQL-a (или има нерегистрирано dll при MDAC driver-ите)
 

OmaRuCat

Well-Known Member
Joined
Jun 3, 2008
Messages
531
Reaction score
456
незнам за ва но аз това го пуснах и дб-то стана 1 мб след това пак почна става голямо 50 мб ми е вече :s:s:s
 

ReaL

New Member
Joined
Apr 13, 2008
Messages
1,244
Reaction score
654
Пускайте си го периодично или най-добре си го драснете като SQL Agent Job на определено време (не прави мн лаг, стига да е през по-голямо време, например 2 дена) :}
 

banned

New Member
Joined
Jan 4, 2009
Messages
616
Reaction score
71
Надявам се и това да ви свърши работа, за триене на логове :) бат файл ... ::):
това без да искам го стартирах от дескопа и почти всичко ми се истри имали начин да ги вастановя ?
 

Babaka

New Member
Joined
Feb 8, 2009
Messages
153
Reaction score
4
Въпрос: Как може да се изключи този лог?
 

ultimater

Member
Joined
Feb 18, 2010
Messages
51
Reaction score
4
И аз искам да попитам същото... Как се спират логовете ??
 

hrisiz

Active Member
Joined
Feb 3, 2010
Messages
428
Reaction score
81
Msg 155, Level 15, State 1, Line 2
'truncate_only' is not a recognized BACKUP option.
? някой да знае как да го оправя ? ползвам MSSQL 2012
 
Last edited:
Thread starter Similar threads Forum Replies Date
ReaL [Guide] Delete Guilds With No Members Guides 3
ReaL [Guide] Delete never used accounts Guides 9
P [Guide] SQL Query To Delete Empty Accounts Guides 6

Similar threads