Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Connecting mysql server running on cloud aws on ubuntu
Forum Update on Monday, May 27th 2025

Connecting mysql server running on cloud aws on ubuntu

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 1.5k Views
  • 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.
  • K Offline
    K Offline
    Kira
    wrote on 6 Feb 2017, 20:37 last edited by
    #1

    Unable to connect the mysql database running on cloud using aws. Please do provide a relevant information.

    Thanks in advance

    K 1 Reply Last reply 6 Feb 2017, 20:43
    0
    • K Kira
      6 Feb 2017, 20:37

      Unable to connect the mysql database running on cloud using aws. Please do provide a relevant information.

      Thanks in advance

      K Offline
      K Offline
      koahnig
      wrote on 6 Feb 2017, 20:43 last edited by
      #2

      @Kira

      What did you try to connect?

      Basically you can follow the example given here in the detailed description

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • K Offline
        K Offline
        Kira
        wrote on 7 Feb 2017, 06:17 last edited by
        #3

        @koahnig : I tried using the step mentioned in the link.

        It works for me when i try to connect mysql database locally.
        But comes with the message like " unable to connect to database" when i try to connect to remote database as mentioned running on AWS.

        J K 2 Replies Last reply 7 Feb 2017, 07:06
        0
        • K Kira
          7 Feb 2017, 06:17

          @koahnig : I tried using the step mentioned in the link.

          It works for me when i try to connect mysql database locally.
          But comes with the message like " unable to connect to database" when i try to connect to remote database as mentioned running on AWS.

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 7 Feb 2017, 07:06 last edited by
          #4

          @Kira maybe you should be more precise: how exactly did you try to connect?
          You should post your code where you try to connect.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          3
          • K Kira
            7 Feb 2017, 06:17

            @koahnig : I tried using the step mentioned in the link.

            It works for me when i try to connect mysql database locally.
            But comes with the message like " unable to connect to database" when i try to connect to remote database as mentioned running on AWS.

            K Offline
            K Offline
            koahnig
            wrote on 7 Feb 2017, 09:38 last edited by koahnig 2 Jul 2017, 09:39
            #5

            @Kira

            Well, when you can do the same locally to a MySql database, there is no (Qt) reason, why you can't to an external DB. It does work the very same way in your application as far as I know. Assuming that all other credentials are the same you need only to change the host address.

            As @jsulm notes your question was/is completely ambiguous. The six lines basically describe the required Qt source lines. Further down the descriptions are referring also to lastError() which is determining what the actual problem is.

            In your case it might be your local firewall and/or the AWS firewall. You need to check if the AWS allows a connection for the port you are using as well you may have to open it for your ip address.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            3
            • K Offline
              K Offline
              Kira
              wrote on 8 Feb 2017, 09:17 last edited by Kira 2 Aug 2017, 09:19
              #6

              @jsulm and @koahnig : Thanks for your reply.
              You were correct it was not issue related to qt.
              Still would like to answer for any other user doing the
              same.
              Qt connects to any external database if it does with the local.
              Here in case of aws there was issue in access rights of the database which does not
              allowed any other application remotely to connect, so in that case we have to allow that users to allow external application to connect to the database.

              1 Reply Last reply
              1

              1/6

              6 Feb 2017, 20:37

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved