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

    Direct Access to App's mysql database

    Invoice Ninja
    invoiceninja
    4
    4
    702
    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.
    • T
      tamayers last edited by girish

      Hello! I am having some issues with the underlying data in one of my InvoiceNinja installation. After talking with InvoiceNinja's team, they are telling me that I need to modify some records in the mysql database directly. Is there a way that I can access a Cloudron's apps database from a UI like phpmyadmin that I have running remotely? If so, can someone point in a direction on how to connect?

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

        The MySQL server is not exposed. Are you OK to be able to use the mysql CLI?

        You can access the database either
        a) Web terminal -> Click the mysql button on the top -> Press enter. This drops you into mysql shell. You can then do 'show tables' etc.

        b) Install Cloudron CLI (npm install -g cloudron) on your laptop/PC. Then:

        cloudron exec --app ninja.example.com -- bash -c 'mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} -e "SHOW TABLES"';
        

        (If you remove the -e "SHOW TABLES" part, you will get a shell).

        1 Reply Last reply Reply Quote 1
        • mdreira
          mdreira translator last edited by

          Hi!

          I have to migrate from a mautic app (outside of cloudron) to the Mautic cloudron app.

          In order to do the migration I need to know database name, user and password (I suppose this will be Cloudron's) of the Mautic app in Cloudron.

          How can I get the name and user of the database?

          Thank you!

          doodlemania2 1 Reply Last reply Reply Quote 0
          • doodlemania2
            doodlemania2 App Dev @mdreira last edited by

            @mdreira it's in the environment variables of each installation - just go to the cli of the app and you'll see them there!

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Powered by NodeBB