Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Accessing one database from multiple apps?

Accessing one database from multiple apps?

Scheduled Pinned Locked Moved Solved Support
4 Posts 2 Posters 560 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Reveller
    wrote on last edited by
    #1

    I've read the docs about how MySQL works in Cloudron.

    • Each app has its own DB (addon) inside its own container, keeping things nicely isolated and secure

    But let's say I have 2 very simple LAMP apps needing to access a single DB... is there any way to accomplish this with Cloudron?

    Thanks.

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by girish
      #2

      You can take the mysql credentials from one app container and use it in the other. But this comes with some side effects that you should be aware of:

      • If you restore an app, or import from backup , the mysql credentials change. You have to then re-configure the other app also.
      • When you app backup the other LAMP app, it's not "complete" because the database is owned by the other app. The database will be part of the other app's backup though.
      1 Reply Last reply
      2
      • R Offline
        R Offline
        Reveller
        wrote on last edited by
        #3

        @girish Excellent. I think what you described will be ok in my case. You said there are "many" side effects. Are those you mentioned the worst of it as far as you know?

        girishG 1 Reply Last reply
        0
        • R Reveller

          @girish Excellent. I think what you described will be ok in my case. You said there are "many" side effects. Are those you mentioned the worst of it as far as you know?

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @Reveller I replaced "many" to "some" 😄

          By far the most crucial one is backup/restore related workflows since the database is not included part of the backup of this one app.

          1 Reply Last reply
          1
          • girishG girish marked this topic as a question on
          • girishG girish has marked this topic as solved on
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search