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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved MySQL database credentials do not appear in Web terminal

    Support
    mysql
    4
    6
    36
    Loading More Posts
    • 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.
    • Z
      zylstra last edited by girish

      Per <ins>this page</ins> I ran env | grep CLOUDRON_MYSQL in the Web terminal. The result was nothing, just the return of the command line.

      robi 1 Reply Last reply Reply Quote 0
      • robi
        robi @zylstra last edited by

        @zylstra from which app?

        did you check the files there?

        Life of Advanced Technology

        1 Reply Last reply Reply Quote 1
        • girish
          girish Staff last edited by girish

          Those credentials will only appear for an app that actually uses MySQL. For example, if it uses Postgres, it will have some other Postgres related environment variables.

          Note that access credentials are per app. Only the app can access the specific database. One app cannot access another app's database.

          M 1 Reply Last reply Reply Quote 0
          • M
            msbt App Dev @girish last edited by

            @girish said in MySQL database credentials do not appear in Web terminal:

            Note that access credentials are per app. Only the app can access the specific database. One app cannot access another app's database.

            that's not quite correct, if you know the MYSQL username and password, you can use any app with MYSQL to access that database 😉

            girish 1 Reply Last reply Reply Quote 1
            • girish
              girish Staff @msbt last edited by

              @msbt Right. We considered network blocking/fire walling the databases per app, but people wanted to use another app's database across apps sometimes.

              But also, this is the same as saying (for any service) "One use cannot access another user's email/account". If I know their username/password, I can access it, of course 🙂

              M 1 Reply Last reply Reply Quote 1
              • M
                msbt App Dev @girish last edited by

                @girish haha true, just wanted to throw that in there 😄

                1 Reply Last reply Reply Quote 1
                • Topic has been marked as a question  girish girish 
                • Topic has been marked as solved  girish girish 
                • First post
                  Last post
                Powered by NodeBB