Disable generation of ib_logfile0,1...
Disable generation of ib_logfile0,1...
Hi,
I'm using MyDac with an embedded database and it automatically generates log files such as ib_logfile0, ib_logfile1, etc.
Is it possible to disable the generation of such files?
Thanks!
I'm using MyDac with an embedded database and it automatically generates log files such as ib_logfile0, ib_logfile1, etc.
Is it possible to disable the generation of such files?
Thanks!
Re: Disable generation of ib_logfile0,1...
To solve your task, you can try to use the OnLog event handler: https://devart.com/mydac/docs/Devart.My ... .OnLog.htm
Re: Disable generation of ib_logfile0,1...
Thanks! I'll try that.
Re: Disable generation of ib_logfile0,1...
You can find more information about work with MySQL Embedded Server here: https://www.devart.com/mydac/docs/using ... server.htm
Re: Disable generation of ib_logfile0,1...
Hi Viktor,
I have tried the following but the LOG is still generated:
I have put a breakpoint on "Database_OnLog" and it's never reached. Maybe I'm doing it incorrectly? I'm creating the embedded database connection in runtime.
Thanks
I have tried the following but the LOG is still generated:
Code: Select all
procedure Database_OnLog(LogString: String);
begin
end;
procedure Database_Initialize(DatabasePath:String);
var
...
LogFunction: ^TMyLogEvent;
begin
FDatabaseEmbedded := TMyEmbConnection.Create(Sender);
...
LogFunction := @Database_OnLog;
FDatabaseEmbedded.OnLog := LogFunction^;
FDatabaseEmbedded.Connected := True;
...
end;
Thanks
Re: Disable generation of ib_logfile0,1...
To solve your task, you can check Disable the InnoDB storage engine on the Params tab in the properties editor of the TMyEmbConnection component.
Re: Disable generation of ib_logfile0,1...
Thanks a lot! It works fine!
Re: Disable generation of ib_logfile0,1...
It is good to see that the issue has been solved.
Feel free to contact us if you have any further questions about our products.
Feel free to contact us if you have any further questions about our products.