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. LAMP
  3. what if I need 2 databases ?

what if I need 2 databases ?

Scheduled Pinned Locked Moved Solved LAMP
3 Posts 2 Posters 636 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.
  • JOduMonTJ Offline
    JOduMonTJ Offline
    JOduMonT
    wrote on last edited by JOduMonT
    #1

    So I try to install CiviCRM with WordPress

    At first, I tried with WordPress for Dev but had an error when it came to install CiviCRM
    so I thought I'll use LAMP for that to see if the error persist.

    CiviCRM recommend having a separate database; 1 for wp and 1 for civi.
    So I was wondering how I could do that since the mysql user created don't have that right
    96dcb295-3d37-47e6-ba82-67f3d046dcb0-image.png

    1 Reply Last reply
    1
    • JOduMonTJ Offline
      JOduMonTJ Offline
      JOduMonT
      wrote on last edited by
      #2

      found it 😉

      guys your really thought about every scenario 😉

      The multipleDatabases option can be set to true if the app requires more than one database. When enabled, the following environment variables are injected and the MYSQL_DATABASE is removed:
      
      
      CLUODRON_MYSQL_DATABASE_PREFIX=      # prefix to use to create databases
      

      ref: https://docs.cloudron.io/packaging/addons/#mysql

      BTW: I found a typo: CLUODRON_MYSQL_DATABASE_PREFIX

      nebulonN 1 Reply Last reply
      3
      • JOduMonTJ JOduMonT

        found it 😉

        guys your really thought about every scenario 😉

        The multipleDatabases option can be set to true if the app requires more than one database. When enabled, the following environment variables are injected and the MYSQL_DATABASE is removed:
        
        
        CLUODRON_MYSQL_DATABASE_PREFIX=      # prefix to use to create databases
        

        ref: https://docs.cloudron.io/packaging/addons/#mysql

        BTW: I found a typo: CLUODRON_MYSQL_DATABASE_PREFIX

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #3

        @jodumont said in what if I need 2 databases ?:

        BTW: I found a typo: CLUODRON_MYSQL_DATABASE_PREFIX

        thanks for reporting! I've fixed it now in the docs.

        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