connect to mysql

osnat dafrush's Avatar

osnat dafrush

22 May, 2016 05:10 PM

Hello,
1. I created an account in you'r site.
2. I created google engine project and in the project i open connection to the MYsql Connection
when i run it locally in my computer it worked very good, but when i run in google engine i get this error:
b9ccf90a-7635-4fad-a914-a60e0100f8c6.mysql.sequelizer.comConnection failed: php_network_getaddresses: gethostbyname failed. errno=0.
can you please help me,
Thank you,
Osnat dafrush.

  1. Support Staff 1 Posted by rune on 23 May, 2016 06:49 AM

    rune's Avatar

    Hi Osnat,

    I'm not sure what the issue might be, particularly since it's working when you run your app locally. I'd recommend you to reach out to the Google App Engine folks to hear what the issue might be as it sounds like it's somehow related to their platform -- perhaps the app needs to have DNS configured differently, or outbound traffic allowed on the relevant ports.

    Best,
    Rune

  2. 2 Posted by Osnat Dafrush on 23 May, 2016 06:30 PM

    Osnat Dafrush's Avatar

    Hello and thank you for the reply,
    Can you give me the DNS name instead of the name that was created?

    Thank you again
    Osnat dafrush.
    בתאריך 23 במאי 2016 09:50,‏ "rune" <[email blocked]> כתב:

  3. Support Staff 3 Posted by rune on 24 May, 2016 12:11 AM

    rune's Avatar

    Hi Osnat,

    What would you like me to provide? The URL you mentioned initially is the DNS name (a CNAME) to your application's database server.

    Best,
    Rune

  4. 4 Posted by Osnat Dafrush on 24 May, 2016 04:00 PM

    Osnat Dafrush's Avatar

    Hello Rune,
    Sorry for my english :)
    I tried to ping the hostname and there was no reply.
    Maby i am doing wrong...
    Do you have any suggest for me?

    Best regards,
    Osnat.
    בתאריך 24 במאי 2016 03:11,‏ "rune" <[email blocked]> כתב:

  5. Support Staff 5 Posted by rune on 25 May, 2016 04:12 AM

    rune's Avatar

    Hi Osnat,

    The database server doesn't respond to ICMP requests (which ping relies on) so that's the reason there's no reply :-)

    It was my understanding that you're able to connect to the database server when running your application locally -- did I misunderstand that? If I didn't, why are you trying to ping the instance?

    Best,
    Rune

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac