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. App Packaging & Development
  3. LAMP 7.3 multidb app package - Multi-user?

LAMP 7.3 multidb app package - Multi-user?

Scheduled Pinned Locked Moved App Packaging & Development
13 Posts 4 Posters 2.2k Views 4 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.
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #2

    As in a different user per different db, or same db?

    Conscious tech

    murgeroM 1 Reply Last reply
    0
    • robiR robi

      As in a different user per different db, or same db?

      murgeroM Offline
      murgeroM Offline
      murgero
      App Dev
      wrote on last edited by
      #3

      @robi Different user per db

      --
      https://urgero.org
      ~ Professional Nerd. Freelance Programmer. ~

      robiR 1 Reply Last reply
      0
      • murgeroM murgero

        @robi Different user per db

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #4

        @murgero I know you know the db is multiuser, so the context here is unclear. Perhaps in how Cloudron would manage it, but it's not managed by Cloudron, so maybe you can elaborate your use case a bit 😜

        Conscious tech

        murgeroM 1 Reply Last reply
        0
        • robiR robi

          @murgero I know you know the db is multiuser, so the context here is unclear. Perhaps in how Cloudron would manage it, but it's not managed by Cloudron, so maybe you can elaborate your use case a bit 😜

          murgeroM Offline
          murgeroM Offline
          murgero
          App Dev
          wrote on last edited by
          #5

          @robi of course mysql is multi-user, but each app only gets one set of credentials. I am asking if it's possible this specific app may have the ability otherwise?

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~

          1 Reply Last reply
          0
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #6

            those credentials are for the Cloudron managed databases no?
            For additional DBs in the package, one would manage those manually in the app config, no?

            Conscious tech

            murgeroM 1 Reply Last reply
            0
            • robiR robi

              those credentials are for the Cloudron managed databases no?
              For additional DBs in the package, one would manage those manually in the app config, no?

              murgeroM Offline
              murgeroM Offline
              murgero
              App Dev
              wrote on last edited by
              #7

              @robi Yes, the creds in credentials.txt are for the cloudron managed sql server, specifically for the apps database. I need multi-database and the ability to have multiple credentials.

              --
              https://urgero.org
              ~ Professional Nerd. Freelance Programmer. ~

              1 Reply Last reply
              0
              • robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #8

                Then you make another custom_credentials.txt for unmanaged DBs.

                Otherwise Cloudron will overwrite any changes when rebuilding/repairing the app.

                Conscious tech

                murgeroM 1 Reply Last reply
                0
                • robiR robi

                  Then you make another custom_credentials.txt for unmanaged DBs.

                  Otherwise Cloudron will overwrite any changes when rebuilding/repairing the app.

                  murgeroM Offline
                  murgeroM Offline
                  murgero
                  App Dev
                  wrote on last edited by
                  #9

                  @robi I am not 100% sure that just creating a new file like that will work - but I'll figure something out.

                  --
                  https://urgero.org
                  ~ Professional Nerd. Freelance Programmer. ~

                  1 Reply Last reply
                  0
                  • girishG Do not disturb
                    girishG Do not disturb
                    girish
                    Staff
                    wrote on last edited by girish
                    #10

                    @murgero there is a flag to mysql addon called multipleDatabases. When set to true, you can create as many dbs as you want the prefix. See the phabricator app for an example.

                    murgeroM 1 Reply Last reply
                    0
                    • girishG girish

                      @murgero there is a flag to mysql addon called multipleDatabases. When set to true, you can create as many dbs as you want the prefix. See the phabricator app for an example.

                      murgeroM Offline
                      murgeroM Offline
                      murgero
                      App Dev
                      wrote on last edited by
                      #11

                      @girish Yeah - I have that in the manifest - creating multiple DBs is not a problem I imagine here.

                      My question is, can I have each DB have a unique user and password for access?

                      --
                      https://urgero.org
                      ~ Professional Nerd. Freelance Programmer. ~

                      girishG 1 Reply Last reply
                      0
                      • murgeroM murgero

                        @girish Yeah - I have that in the manifest - creating multiple DBs is not a problem I imagine here.

                        My question is, can I have each DB have a unique user and password for access?

                        girishG Do not disturb
                        girishG Do not disturb
                        girish
                        Staff
                        wrote on last edited by
                        #12

                        @murgero There is only a single user/password. Can I ask why an app needs multiple users?

                        A 1 Reply Last reply
                        0
                        • girishG girish

                          @murgero There is only a single user/password. Can I ask why an app needs multiple users?

                          A Offline
                          A Offline
                          andirahmat
                          wrote on last edited by
                          #13

                          @girish I also think about this. The use case is. I need the first db and dbuser for the web app. And the second db and dbuser for view tables from the first db. This second db and db user is used for metabase report so the original db and table structure not shown for the metabase user.

                          Another case i can think of is to make a slave db on the lamp app from external db.

                          1 Reply Last reply
                          1
                          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