-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection to remote MySQL db from Python 3.4 #58
Comments
@stuart258 yes, SO should be the place where to start.
Thanks for reporting! |
@fernandezcuesta thanks for getting back to me. Unfortunately I don't seem to have moved forwards:
Thanks. |
Silly me, you've to do:
or cleaner:
|
@fernandezcuesta thanks, that seems to be giving more useful results. I can see that the new key seems to be accepted but I'm struggling to interpret the rest of the feedback:
|
OK looks like a permissions issue with your local ports (most probably 127.0.0.1:3308). |
@fernandezcuesta thanks again for your support. Unfortunately I'm still stuck due to my newbie status - another pointer would be greatly appreciated! To confirm that it's a permissions issue as you said, I wanted to start by running the program as an administrator (plus I don't know how to set permissions on ports anyway)! So I tried
to my code, but now I get a Traceback ending with
and I'm lost again (plus I think I'm going off-topic for this issue, plus some of this is Linux-specific rather than generic :-( ... sorry. Please tell me if I should post this as a new question on Stack Exchange.) |
well I've no clue what may be happening but from logs perspective it looks like there's no way to open a connection to ('127.0.0.1', 46228), being the latter a random port.
|
@fernandezcuesta thanks, I tried that snippet and "nothing happened" i.e. there was no feedback. So that means that the permissions for accessing 46228 are fine, doesn't it? |
Hi @fernandezcuesta and everyone, sorry for the long delay in coming back but I'm still struggling with this. I've progressed to running the script as an administrator (the issue above was my own stupidity :-(). But I'm getting the same error so I'm even more confused... I don't understand how it can be a permissions issue if the administrator has the same problem? Any further help would be greatly appreciated. I didn't think that connecting to a remote db was going to be so difficult - especially after having done it from the command line without too many problems :-(. Thanks. |
Can you past the fill console log. And what you have done. |
@pahaz, when you say the full console log, do you simply mean the output from the console? If so, here it is with my script below. Thanks. Console output:
Script
|
Just a stupid question, are you sure mariadb is listening on port 3308 instead of default 3306? |
@fernandezcuesta, yes, that's it! Thank you very much for your help - I owe you a beer! And yes, I'm feeling a bit stupid... I copied an example but should have checked the details. Thanks again. |
Glad to see it helped! Anyway I saw the error is not what is supposed to be |
Hi All,
I posted a question about using SSH Tunnel on Stack Exchange recently, but I'm not sure if that was the right place for it (and I didn't get any answer). Would it have been better to post it on here? This is the "Issues" section which doesn't really seem right... I'm a bit lost :-(
Thanks in advance.
Stuart.
The text was updated successfully, but these errors were encountered: