Git Product home page Git Product logo

mysql's Introduction

mysql

mysql service contains armadized MySQL server accompanied with phpMyAdmin interface configured to access it.

⚠️ Due to apparmor policy issue MySQL container will not initialize on a host with MySQL server installed. Related Issue

Building and running the service.

armada build mysql
armada run mysql -v /var/opt/mysql-storage:/var/lib/mysql -p 3306:3306

MySQL database data is stored in directory /var/lib/mysql inside the container. To ensure its persistence it should be mapped to some folder on the host machine, e.g. /var/opt/mysql-storage.

MySQL server binds to port 3306 and is exposed as main service's port. PhpMyAdmin is exposed on separate port and visible in Armada catalog as mysql:phpmyadmin. In the above example we've mapped port 3306 to the same port on the host machine, but you can also use other service discovery methods to connect to it.

Initializing the database.

When you run mysql service with empty directory mapped to /var/lib/mysql, new MySQL database will be initialized. There will be one MySQL user created: root with password groovy. If you want to alter the password you can set it with environment variable like this:

armada run mysql -v /var/opt/mysql-storage:/var/lib/mysql -e "MYSQL_ROOT_PASSWORD=secret!"

mysql's People

Contributors

krzysztof-indyk avatar fwojciak avatar karamazi avatar cerebroganymede avatar mmeinardi-ganymede avatar gmo-dev avatar

Watchers

James Cloos avatar Artur avatar  avatar  avatar Szymon Kempny avatar  avatar Adam Marszałek avatar  avatar  avatar  avatar  avatar  avatar

Forkers

chavalisailaja

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.