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
  • Brite
  • 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. Restoring LAMP app to a different Cloudron instance creates a different mysql password

Restoring LAMP app to a different Cloudron instance creates a different mysql password

Scheduled Pinned Locked Moved Solved Support
mysqladdonwontfix
2 Posts 2 Posters 19 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.
  • luckowL Offline
    luckowL Offline
    luckow
    translator
    wrote last edited by girish
    #1

    All errors with a Cloudron version 9.0.13
    Instead of using variables for username & password, i used hard coded variables in configs. Not good. I know. 🙂

    Restoring a LAMP app from one instace to a different one, produces a different password.

    Expectation: a restore creates an identical environment. Observation: there is a different password for the MYSQL database.

    Pronouns: he/him | Primary language: German

    girishG 1 Reply Last reply
    1
    • luckowL luckow

      All errors with a Cloudron version 9.0.13
      Instead of using variables for username & password, i used hard coded variables in configs. Not good. I know. 🙂

      Restoring a LAMP app from one instace to a different one, produces a different password.

      Expectation: a restore creates an identical environment. Observation: there is a different password for the MYSQL database.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote last edited by
      #2

      @luckow not sure if that is the right expectation, you have to use env vars. Password is just one or the many config vars of an addon. Addons can change because of user actions. For example, a user changes the SMTP addon address, user changes internal ports of an addon, user changes oidc scopes etc.

      In many PaaS setups, they will cycle passwords periodically, so hard-coding will never work even if you don't move instance in the long run. The behavior is the same in all app deployment platforms - heroku, DO app. See https://devcenter.heroku.com/articles/add-ons#config-var-values-can-change for some rationale.

      1 Reply Last reply
      1
      • girishG girish has marked this topic as solved
      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