Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Why connection is failing?!

Why connection is failing?!

Scheduled Pinned Locked Moved Database
helpcsharpcomsalesquestion
10 Posts 4 Posters 0 Views 1 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.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I am having the above error on my .net application. It only shows on customer screen with a basix SELECT statement. Currently I have only 1600 customers in the customers table This error is not shown on any of the other screens except the customer screen. My connection timeout is 360 and I even tried to increase it to 800 but getting the same error for the customer screen! what could be the problem please? Thanks, Jassim

    Technology News @ www.JassimRahma.com

    L 1 Reply Last reply
    0
    • J Jassim Rahma

      Hi, I am having the above error on my .net application. It only shows on customer screen with a basix SELECT statement. Currently I have only 1600 customers in the customers table This error is not shown on any of the other screens except the customer screen. My connection timeout is 360 and I even tried to increase it to 800 but getting the same error for the customer screen! what could be the problem please? Thanks, Jassim

      Technology News @ www.JassimRahma.com

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Jassim Rahma wrote:

      "MySQL A connection attempt failed because the connected third party did not properly respond after a period of time"

      You're referencing to something that's not there; the exception message comes from one of your older posts. Simply include it with the rest of the text. Can you connect at all to that particular server? Using Telnet[^]?

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      J 1 Reply Last reply
      0
      • L Lost User

        Jassim Rahma wrote:

        "MySQL A connection attempt failed because the connected third party did not properly respond after a period of time"

        You're referencing to something that's not there; the exception message comes from one of your older posts. Simply include it with the rest of the text. Can you connect at all to that particular server? Using Telnet[^]?

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        J Offline
        J Offline
        Jassim Rahma
        wrote on last edited by
        #3

        Yes I can. I am also able to view invoices, employees and all other data from the same database on the same server using the same .net application. Exceptions occurs on the customers only. Any timeout parameter or variable I should try to look at?

        Technology News @ www.JassimRahma.com

        M 1 Reply Last reply
        0
        • J Jassim Rahma

          Yes I can. I am also able to view invoices, employees and all other data from the same database on the same server using the same .net application. Exceptions occurs on the customers only. Any timeout parameter or variable I should try to look at?

          Technology News @ www.JassimRahma.com

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          I would suggest you look at the customer query then, it is not your connection, that works for other queries!

          Never underestimate the power of human stupidity RAH

          J 1 Reply Last reply
          0
          • M Mycroft Holmes

            I would suggest you look at the customer query then, it is not your connection, that works for other queries!

            Never underestimate the power of human stupidity RAH

            J Offline
            J Offline
            Jassim Rahma
            wrote on last edited by
            #5

            this is my query:

            SELECT customer_id, id_number, customer_name, email_address, landline_number, mobile_number, customer_address_building, customer_address_road, customer_address_block, customer_address_landmark, allow_delete, is_blacklist, is_inactive FROM customers ORDER BY customer_name;

            Technology News @ www.JassimRahma.com

            B 1 Reply Last reply
            0
            • J Jassim Rahma

              this is my query:

              SELECT customer_id, id_number, customer_name, email_address, landline_number, mobile_number, customer_address_building, customer_address_road, customer_address_block, customer_address_landmark, allow_delete, is_blacklist, is_inactive FROM customers ORDER BY customer_name;

              Technology News @ www.JassimRahma.com

              B Offline
              B Offline
              Bernhard Hiller
              wrote on last edited by
              #6

              There is no WHERE clause?!

              J 1 Reply Last reply
              0
              • B Bernhard Hiller

                There is no WHERE clause?!

                J Offline
                J Offline
                Jassim Rahma
                wrote on last edited by
                #7

                no WHERE. I am filtering using the XtraGrid. It will be maximum of 2000 records which I though MySQL will be able to handle it easily.

                Technology News @ www.JassimRahma.com

                L 1 Reply Last reply
                0
                • J Jassim Rahma

                  no WHERE. I am filtering using the XtraGrid. It will be maximum of 2000 records which I though MySQL will be able to handle it easily.

                  Technology News @ www.JassimRahma.com

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Jassim Rahma wrote:

                  which I though MySQL will be able to handle it easily

                  Stop pointing fingers; it's not MySQL that's failing, but a third-party component. You might try to connect using another user/role/password at the customers site. And update your MySQL data provider :)

                  Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                  J 1 Reply Last reply
                  0
                  • L Lost User

                    Jassim Rahma wrote:

                    which I though MySQL will be able to handle it easily

                    Stop pointing fingers; it's not MySQL that's failing, but a third-party component. You might try to connect using another user/role/password at the customers site. And update your MySQL data provider :)

                    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                    J Offline
                    J Offline
                    Jassim Rahma
                    wrote on last edited by
                    #9

                    I will do and by the way, I was not pointing fingers :) Lol Thank you so much

                    Technology News @ www.JassimRahma.com

                    L 1 Reply Last reply
                    0
                    • J Jassim Rahma

                      I will do and by the way, I was not pointing fingers :) Lol Thank you so much

                      Technology News @ www.JassimRahma.com

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      Jassim Rahma wrote:

                      and by the way, I was not pointing fingers :) Lol

                      My bad; it could have been, depending on language and intonation :) I usually take the exception-message as a starting point;

                      Jassim Rahma wrote:

                      "MySQL A connection attempt failed because the connected third party did not properly respond after a period of time"

                      Plan of attack;

                      • Create a console-app, use the users' credentials, and try a minimal query (SELECT 1 or something similar)
                      • Test once with your current data provider (MySQL Connector.NET?)
                      • Copy the project, try another data provider (MySQLDotNET[^])
                      • Try the same again, using the dba-account.

                      If you can terminal to MySQL, then the server is there; that you said was true. That means that you can skip checking the firewall and the port on which MySQL speaks. The reason I'm asking to test with the dba's account is that he should have unrestricted access to all tables. If that one connects correctly, then you'd need to do some extra grants on your users' accounts. What does your connection-string look like? Can you post it here? (Without the login-info)

                      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                      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
                      • World
                      • Users
                      • Groups