|
| Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Registered
Join Date: Aug 2012
Location: New York City
Posts: 2
Reputation: 0
|
Accessing MySQL through Python
Has anyone successfully connected to their MySQL database via Python? Using the control panel there is a button that generates the code, but when I run it in Python I get the error:
Unknown MySQL server host 'cinemit.powwebmysql.com' (11004) This should be a simple matter of correcting the host address, but the help over chat was laughably unhelpful. I'm confident I have the required Python modules correctly installed, and that I am connecting to the default port. Any thoughts? Thanks! |
|
|
|
|
|
#2 |
|
Join Date: Feb 2009
Location: India
Posts: 165
Reputation: 32
|
it seems its an issue with dns for ur mysql host. check weter it works wit php?
__________________
|
|
|
|
|
|
#3 |
|
Registered
Join Date: Aug 2012
Location: New York City
Posts: 2
Reputation: 0
|
Shrupa, thanks for your response. I agree, it probably is a problem with the host address, but I don't know what else to use. Do you have any suggestions for a different host address to use, or where to check? The PHP code that is generated has the same host address so I doubt it would make any difference.
|
|
|
|
|
|
#4 |
|
Custom User Title
Join Date: Aug 2006
Location: Michigan
Posts: 2,669
Reputation: 337
|
Is the Python code running on PowWeb? One thing to note, unless things have changed, PowWeb does not allow access to the MySQL from a resource outside of PowWeb. I know in the past individuals have had trouble with this when trying to do the development on their local machine while trying to pull the data from the server.
|
|
|
|
|
|
#5 |
|
Join Date: Feb 2009
Location: India
Posts: 165
Reputation: 32
|
contact support to correct mysql host.
__________________
|
|
|
|
![]() |
| Thread Tools | |
|
|