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
  • Brite
  • 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. Redash
  3. Redash Not Connecting Azure Database for MySQL flexible server

Redash Not Connecting Azure Database for MySQL flexible server

Scheduled Pinned Locked Moved Redash
4 Posts 2 Posters 55 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.
  • W Offline
    W Offline
    webliska
    wrote last edited by
    #1

    Hello,

    I tried to connect my Azure Database for MySQL flexible server in Redash but it's not getting connected.

    I get an Internal Server Error when I try to Test Connection:

    eada208f-a938-449e-be05-f142742d0363-image.png

    Any help is appreciated.

    Thanks!

    1 Reply Last reply
    0
    • jamesJ james moved this topic from Support
    • jamesJ james marked this topic as a regular topic
    • jamesJ Online
      jamesJ Online
      james
      Staff
      wrote last edited by james
      #2

      Hello @webliska
      I moved this topic into the @redash category and made this a normal post.


      Does the logs of the apps reveal anything when trying this?
      Did you make sure that your Cloudron is allowed to connect to the MySQL instance? I hope your MySQL server is not publicly accessible by everyone?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        webliska
        wrote last edited by
        #3

        When I try to connect nc -v mydb.mysql.database.azure.com 3306 from my Cloudron server to the Azure DB, it connects successfully.

        I did not find any error's in Logs. Can you help me debug this?

        1 Reply Last reply
        0
        • jamesJ Online
          jamesJ Online
          james
          Staff
          wrote last edited by
          #4

          Hello @webliska
          nc only checks the ports' availability.
          Unfortunately, I can't provide full support for Azure Database for MySQL.
          But, you should check out the following article https://learn.microsoft.com/en-us/azure/mysql/flexible-server/concepts-networking-public

          From this page:

          Only the IP addresses you allow have permission to access your Azure Database for MySQL Flexible Server instance. By default, no IP addresses are allowed. You can add IP addresses when initially setting up your server or after your server has been created.

          The user that tries to connect is also important. Not every MySQL User is allowed to access the server from anywhere.
          Also, this page: https://learn.microsoft.com/en-us/azure/mysql/how-to-create-users#create-a-nonadmin-user

          Note: on CREATE USER 'username'@'host'.
          In many guides for 'host' the value % is used to allow everything, which is considered a bad practice.
          A good example is here: https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql#step-2-create-a-remote-mysql-user

          Maybe these tips already help you resolve your issue.

          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