Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • MariaDB - how to populate database at startup

    Posted on

    Hi all,

    I have a question - how would one go at it to populate a MariaDB database with a number of tables each time a pod gets deployed (I'm running this on OpenShift)?

    The idea is that I have a script that checks if a certain table already exists and, if not, it should create a number of tables.

    What would be the best approach to getting that bash script executed so I'm sure that, whenever a pod is started, I have the tables needed for the application to run correctly?

    A big thank you in advance for any ideas / suggestions!

    Bernard.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat