Re: Mu DB Log Shrinking (NOT NEW)
sounds good. how much will it shrink it by?
Re: Mu DB Log Shrinking (NOT NEW)
by the number of mbs you put in the spot shown in image1 (i think i explained wrong in the first image, that number wont be the max file size, it will be the log file final size :P)
im really sorry for the mistake guyz
Re: [release]Mu DB Log Shrinking
lol man when i used ur guide my database file size now 53MB before 13MB waaaa is it normal? what a, i want to shrink database to shorter the file size not to add more and more omg...man tell me how to put it back to original size...damn this guide is not good for me =( sorry
Re: [release]Mu DB Log Shrinking
i think its normal, its like empty spaces in the db wich use that space, but when it logs, it overwrites those empy spaces, so it wont grow, it will remain like this...
i could be wrong tho :P
Re: [release]Mu DB Log Shrinking
looool, so put a size that is smaller than your file actual size on the final log size spot, not a bigger one
Re: [release]Mu DB Log Shrinking
when you are truncating data, lines are ereased to give space to new ones, so, when i shrink the data of the db log, the older lines are ereased to give space to others, thats how the db log size limit works, it automatically truncates the log files when it grows more than the max size. but when you put a higher number on the final sise (BACKUP LOG MuOnline WITH TRUNCATE_ONLY DBCC SHRINKFILE (MuOnline_log, 50)), new blank lines with the null value are added to bring the file to the expected size, so, if you shrink your files to a higher number than it actually is, youre doing nothing more than adding unusefull data to the log (wich isnt really smart
Re: [release]Mu DB Log Shrinking
nvm, i think my serverfiles already has a script for shrinking databases, my muonline_log now 502kb, i just turn off the service manager then delete the file, and then when i turn it on, it makes another muonline_log wif 502kb without lossing any data.
Re: [release]Mu DB Log Shrinking
its not good for the mssql deleting log files, coz if you have any problems with the database, you dont have the last logs you had and you wont be able to restore it, when you shrink it you keep the last logs. also, if your mssql get unable to create the log file(missing dlls or smth like that) your db will crash and you won't be able to save it, coz mssql dbs dont work without log
Re: [release]Mu DB Log Shrinking
Does this thread need to be moved on guide section?.. btw you can also do shrink using mueditor 2.1 backup your files first before doing so, thats what im using in my server
Re: [release]Mu DB Log Shrinking
if you want to move ..
if its wrong here, id be glad if you could do this for me :P
Re: [release]Mu DB Log Shrinking
Quote:
ts not good for the mssql deleting log files, coz if you have any problems with the database, you dont have the last logs you had and you wont be able to restore it, when you shrink it you keep the last logs. also, if your mssql get unable to create the log file(missing dlls or smth like that) your db will crash and you won't be able to save it, coz mssql dbs dont work without log
oh...ok i will shrink the database from now on ^^, btw i got a simple script before for shrinking database, its about 3 lines i think...so easy...just a script no anyother...but when i go back to the thread section the guide gone =( i want to use those script for my server =(, if u still got those 3 lines pls post i want to copy ^_^
Re: [release]Mu DB Log Shrinking
me? three lines? i dont remember that man the only script i posted here after re creating myaccount was this one..
Re: [release]Mu DB Log Shrinking
no, its someone who posted it and dunno who, i just copy his script and run into my sql query and it works...i am searching for the old-server-help guide coz i found it there...i think the thread now gone =(
Re: [release]Mu DB Log Shrinking