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

    LAMP
    2
    3
    181
    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.
    • JOduMonT
      JOduMonT last edited by JOduMonT

      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 Reply Quote 1
      • JOduMonT
        JOduMonT last edited by

        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

        nebulon 1 Reply Last reply Reply Quote 3
        • JOduMonT
          JOduMonT last edited by

          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

          nebulon 1 Reply Last reply Reply Quote 3
          • nebulon
            nebulon Staff @JOduMonT last edited by

            @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 Reply Quote 1
            • First post
              Last post
            Powered by NodeBB