Page 1 of 1

Disable generation of ib_logfile0,1...

Posted: Mon 02 Apr 2018 09:04
by rahucha
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!

Re: Disable generation of ib_logfile0,1...

Posted: Mon 02 Apr 2018 10:21
by ViktorV
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...

Posted: Mon 02 Apr 2018 14:56
by rahucha
Thanks! I'll try that.

Re: Disable generation of ib_logfile0,1...

Posted: Mon 02 Apr 2018 15:25
by ViktorV
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...

Posted: Tue 03 Apr 2018 08:21
by rahucha
Hi Viktor,

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;
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

Re: Disable generation of ib_logfile0,1...

Posted: Wed 04 Apr 2018 09:03
by ViktorV
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...

Posted: Thu 05 Apr 2018 08:29
by rahucha
Thanks a lot! It works fine!

Re: Disable generation of ib_logfile0,1...

Posted: Thu 05 Apr 2018 09:07
by ViktorV
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.