<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      the database is re-created after each start just if you're using
      in-memory H2 database. This is the case by default if you're using
      KeycloakServer from testsuite for development. You can change it
      to use either File-based H2 (this is used by keycloak-appliance
      distribution by default) or point to some other DB like MySQL for
      example. <br>
      <br>
      To change this, you just need to add few system properties when
      running server. See this file for details of what needs to be
      changed:
<a class="moz-txt-link-freetext" href="https://github.com/keycloak/keycloak/blob/master/testsuite/integration/src/main/resources/META-INF/keycloak-server.json">https://github.com/keycloak/keycloak/blob/master/testsuite/integration/src/main/resources/META-INF/keycloak-server.json</a><br>
      <br>
      I am personally usually using mongo for development with
      KeycloakServer. Data are persistent among server restarts, so DB
      doesn't need to be initialized after restart and server startup
      usually takes about 2 seconds on my laptop.<br>
      <br>
      Marek<br>
      <br>
      On 22.3.2015 14:27, Prakhash siva wrote:<br>
    </div>
    <blockquote
cite="mid:CAOJRExTvKbk+dPJ5-v5H+3sh56+CQkp6gU94wgBk6XXk7U=koA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all,
        <div>I have a issue related to how the KC database works.
          According to my understanding it is a sqlite kind of database
          and whenever I run the server it get initiates. so when
          logging the events with the purpose of detecting intrusions is
          it 100% possible to use the inbuilt database of  KC.</div>
        <div><br>
        </div>
        <div>for example If I'm going to maintain a history for a
          specific client to identify his activities it can't be locally
          tested. So its trivial that I need to change the database. So
          I need to get to know if I change the database to mongo will
          the same re initialization process will happen? and where I
          need to work for this</div>
        <div><br>
        </div>
        <div>Thanks </div>
        <div>
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature">
            <div dir="ltr"><i><b>Sivakumar Prakhash</b></i>
              <div><i><b>Undergraduate</b></i></div>
              <div><i><b>Computer Science &amp; Engineering</b></i></div>
              <div><i><b>University of Moratuwa.</b></i></div>
              <div><br>
              </div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>