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

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

    Mango and MySQL

    User help
    1
    4
    3976
    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.
    • M
      mlohbihler last edited by

      Users have asked for details on how to have their Mango instances use MySQL instead of Derby. Note first that there is currently no conversion mechanism between the two. When you switch to MySQL, you are creating an entirely new instance of Mango. (The import/export utility will be of use getting some configuration over.) Note secondly that this only applies to the commercial version.

      Edit the <tomcat-webapps>/<mango-dir>/WEB-INF/classes/env.properties file. By default the settings of concern will be:

      
      db.type=derby
      db.url=~/../../mangoDB
      db.username=
      db.password=
      

      You will need to change this to:

      
      db.type=mysql
      db.url=&lt;url to mysql&gt;
      db.username=&lt;mysql username&gt;
      db.password=&lt;mysql password&gt;
      

      The url to mysql will look something like this: "jdbc:mysql://localhost/mango". You should not need to install the mysql connector classes into Mango since the jar file ships with Mango anyway.

      Best regards,
      Matthew

      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler last edited by

        An extra note: your MySQL user and the schema (or catalog) must already exist, and the user must have permission to the schema in all the usual ways. (When in doubt, grant the user all permissions to the schema). But, do not create the Mango tables yourself. Mango likes to do that itself.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • M
          mlohbihler last edited by

          This post has been superseded by this one: http://mango.serotoninsoftware.com/forum/posts/list/185.page.

          Best regards,
          Matthew

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