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. Directus
  3. How to install Directus with MYSQL support (on Cloudron)

How to install Directus with MYSQL support (on Cloudron)

Scheduled Pinned Locked Moved Directus
6 Posts 3 Posters 1.3k Views 3 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.
  • S Offline
    S Offline
    systemaddict
    wrote on last edited by girish
    #1

    Hi

    I've installed Directus and that will setup a PostGres installation. Is it possible to change that to a MySQL? If not, how do you change a running installation to MySQL?

    girishG 1 Reply Last reply
    0
    • S systemaddict

      Hi

      I've installed Directus and that will setup a PostGres installation. Is it possible to change that to a MySQL? If not, how do you change a running installation to MySQL?

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

      @systemaddict Can you tell us a bit more about your use case? Why do you want to use MySQL and not PostgreSQL ? Generally, the package specifies which database to use. To use another database, we have to modify the package. I can tell you how to do this, but want to be sure what the use case is fast before sending you down that rabbit hole.

      S 1 Reply Last reply
      0
      • girishG girish

        @systemaddict Can you tell us a bit more about your use case? Why do you want to use MySQL and not PostgreSQL ? Generally, the package specifies which database to use. To use another database, we have to modify the package. I can tell you how to do this, but want to be sure what the use case is fast before sending you down that rabbit hole.

        S Offline
        S Offline
        systemaddict
        wrote on last edited by
        #3

        @girish I guess I'm just used to MySQL and already have tables that I would like to transfer to Directus. But this might be a good time to change 🙂

        MooCloud_MattM girishG 2 Replies Last reply
        0
        • S systemaddict

          @girish I guess I'm just used to MySQL and already have tables that I would like to transfer to Directus. But this might be a good time to change 🙂

          MooCloud_MattM Offline
          MooCloud_MattM Offline
          MooCloud_Matt
          wrote on last edited by
          #4

          @systemaddict
          Directus is a good software especially because it handles SQL migration automatically, and in this pSQL is a lot faster, and is, in general, a better SQL database than MySQL, with support for more features than MySQL; Directus will emulate for you those features so that you will not feel the difference (obviously you will use resources for this)

          At the end, is not a big thing to clone the app from GitLab, change the manifest and the start.sh file to use MySQL.

          https://git.cloudron.io/cloudron/directus-app
          https://docs.cloudron.io/packaging/tutorial/

          Matteo. R.
          Founder and Tech-Support Manager.
          MooCloud MSP
          Swiss Managed Service Provider

          1 Reply Last reply
          2
          • S systemaddict

            @girish I guess I'm just used to MySQL and already have tables that I would like to transfer to Directus. But this might be a good time to change 🙂

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

            @systemaddict yeah, if possible, it's easier to convert your existing mysqldump to postgresql and then you can import that into cloudron's directus using instructions at https://docs.cloudron.io/guides/import-postgresql/ . Otherwise, you have to modify the Cloudron package to use MySQL as @MooCloud_Matt mentioned.

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

              It seems https://github.com/directus/directus/discussions/2832 suggests that database import/export is the way to go. I was hoping they have some sort of import/export data but they don't have it.

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