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


Navigation

    Cloudron Forum

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

    I need to migrate an old Moodle to my new Cloudron Moodle--what are the DB details?

    Moodle
    5
    8
    83
    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.
    • jordanurbs
      jordanurbs last edited by

      Here are the details I need in order to migrate:
      Screen Shot 2020-11-23 at 1.47.21 PM.png

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

        you can jump on a terminal and enter env | grep MYSQL, this will give you the database details.

        jordanurbs 1 Reply Last reply Reply Quote 0
        • jordanurbs
          jordanurbs @msbt last edited by

          @msbt said in I need to migrate an old Moodle to my new Cloudron Moodle--what are the DB details?:

          env | grep MYSQL

          Thanks but that doesn't give me anything in the cloudron terminal. Nothing happens

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

            @jordanurbs the cloudron package uses postgres. So try env | grep POSTGRESQL

            M BrutalBirdie jordanurbs 3 Replies Last reply Reply Quote 1
            • M
              msbt App Dev @girish last edited by

              ah my bad, should have omitted the MY from MYSQL 😄

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

                @girish said in I need to migrate an old Moodle to my new Cloudron Moodle--what are the DB details?:

                @jordanurbs the cloudron package uses postgres. So try env | grep POSTGRESQL

                @jordanurbs
                You can find out what addons being used for a cloudron app by checking the repo

                https://git.cloudron.io/cloudron/moodle-app

                and the CloudronManifest.json

                https://git.cloudron.io/cloudron/moodle-app/-/blob/master/CloudronManifest.json

                {
                  "id": "org.moodle.cloudronapp",
                  "title": "Moodle",
                  "author": "Moodle developers",
                  "description": "file://DESCRIPTION.md",
                  "tagline": "The world's most popular learning management system",
                  "version": "1.0.0",
                  "healthCheckPath": "/",
                  "httpPort": 8000,
                  "memoryLimit": 524288000,
                  "manifestVersion": 2,
                  "website": "https://moodle.org/",
                  "contactEmail": "support@cloudron.io",
                  "icon": "logo.png",
                  "addons": {
                    "postgresql": {},
                    "localstorage": {},
                    "sendmail": {},
                    "ldap": {},
                    "scheduler": {
                      "periodic": {
                          "schedule": "*/1 * * * *",
                          "command": "/usr/bin/php  /app/code/admin/cli/cron.php >/dev/null"
                      }
                    }
                  },
                  "tags": [ "moodle", "learning", "lms", "canvas", "blackboard", "edutech" ],
                  "changelog": "file://CHANGELOG",
                  "postInstallMessage": "file://POSTINSTALL.md",
                  "mediaLinks": [
                    "https://screenshots.cloudron.io/org.moodle.cloudronapp/1.png",
                    "https://screenshots.cloudron.io/org.moodle.cloudronapp/2.png",
                    "https://screenshots.cloudron.io/org.moodle.cloudronapp/3.jpg"
                  ],
                  "minBoxVersion": "5.3.0",
                  "forumUrl": "https://forum.cloudron.io/category/102/moodle",
                  "documentationUrl": "https://docs.cloudron.io/apps/moodle/"
                }
                

                Or when you open the logs you should have a button for Postgres or MySQL
                😄

                1 Reply Last reply Reply Quote 3
                • jordanurbs
                  jordanurbs @girish last edited by

                  @girish said in I need to migrate an old Moodle to my new Cloudron Moodle--what are the DB details?:

                  env | grep POSTGRESQL

                  Thanks, that gives me the details.

                  Now I've got a second issue though: the old Moodle only lets me choose between MariaDB or Improved MySQL. Any thoughts?

                  fbartels 1 Reply Last reply Reply Quote 0
                  • fbartels
                    fbartels App Dev @jordanurbs last edited by

                    @jordanurbs this is probably relevant to you https://docs.moodle.org/310/en/Database_transfer

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post