|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
Post
#1
Aug 24 2006, 06:17 PM
I like to experiment with a lot of things and I was thinking of making a sort of instant messenger in Python, but I want to let people have actual accounts so I need to be able to access the mySQL remotely. If that's not possible, are we allowed to run Python scripts on the server?
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin
Posts: 3,696 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 myCENT:19.60 |
Post
#2
Aug 24 2006, 08:03 PM
Yes you can access SQL remotely but this is not recommended. When you code please check and double check so that it does not abuse SQL connection tries. Otherwise it will crash or shut down SQL server. As far as Python script goes, OpaQue has not said no to that. However the first sign of abuse or unstable the server admin will disallow your further usage and perhaps lead to account termination. So please make sure that you are not leaving any open "holes." Thank you. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 1,252 Joined: 27-May 05 From: Portugal (Europe) Member No.: 7,566 myCENT:48.49 |
Post
#3
Aug 25 2006, 12:36 AM
BuffaloHELP, tell me something please, can i use the following program to remotly connect to my trap17 free hosting mysql server? MySQL-Front |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
Post
#4
Aug 26 2006, 06:08 PM
The mysql, I'm assuming is at mysql.trap17.com? And how would I run the script?
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 742 Joined: 2-November 05 From: My hybrid bus (in NYC), a computer Member No.: 13,709 ![]() |
Post
#5
Aug 27 2006, 03:16 AM
QUOTE(beeseven @ Aug 26 2006, 02:08 PM) [snapback]277247[/snapback] The mysql, I'm assuming is at mysql.trap17.com? And how would I run the script? The MySQL server can be accessed from your site's address. Example: My domain is nyceducated.info, so the server address I would use to access it would be nyceducated.info. Alternatively, you could use gamma.xisto.com. either way, remember to allow remote access to the MySQL server from your IP address in cPanel: Log in to cPanel, go to the MySQL Databases page, and scroll all the way down to the bottom, where you see the Access Hosts section. Type in either your IP address (if it's static; which I bet it isn't), or just '%', which acts as a wildcard. (See the attachment below for reference.) But as BuffaloHELP mentioned above, it is perfered that you only access MySQL locally, for performance and security purposes. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
Post
#6
Sep 6 2006, 12:19 AM
Thanks, that was really helpful. I'd still like to know how to run a script, though. Edit: It doesn't seem to want to let me in. I'm trying to connect in Python using this: CODE conn = _mysql.connection(host='beeseven.trap17.com', user='beeseven', passwd='********', db='beeseven_forumz') But I'm getting this error:QUOTE Traceback (most recent call last):
File "<pyshell#8>", line 1, in -toplevel- conn = _mysql.connection(host='beeseven.trap17.com', user='beeseven', passwd='*******', db='beeseven_forumz') OperationalError: (1045, "Access denied for user: 'beeseven@ip68-100-***-***.dc.dc.cox.net' (Using password: YES)") This post has been edited by beeseven: Sep 16 2006, 07:37 PM |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
Post
#7
Sep 20 2006, 10:35 PM
I'm all about sharing solutions to problems, so I'll say that I figured out you can run a script using PHP's "system" command like so: CODE <?php and that will also print out all the output of the script.
system("test.py"); ?> |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin
Posts: 1,582 Joined: 11-June 04 From: Somewhere in Time & Space. Member No.: 1 myCENT:95.57 |
Post
#8
Feb 19 2007, 02:44 AM
QUOTE(Lyon2 @ Aug 25 2006, 06:06 AM) [snapback]276733[/snapback] BuffaloHELP, tell me something please, can i use the following program to remotly connect to my trap17 free hosting mysql server? MySQL-Front Yes, Configure your IP address in MYSQL section in CPanel. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 357 Joined: 8-April 06 Member No.: 21,487 |
Post
#9
Feb 22 2007, 09:51 PM
Dear beeseven its not secure connect to one open mysql for share your database you must ping your script ip for example ( new hosting or script hosting ) and take an ip address then go to cpanel / mysql part and at bottom of page you can find one text "localhost" submit your ip address in textboxbottom of "localhost" text thanks |
![]() Group: Members
Posts: 9 Joined: 5-June 08 Member No.: 63,230 |
Post
#10
Jun 18 2008, 01:11 AM
ok! I read this thread a few times and tried to use the mysql remotely. I set the ip of the other server who wants to use the mysql in Cpanel, I also change db host in script to my domain. but what I got is still negative. it says "Error establishing a database connection " . can anyone help me to address that? I just want some sites share the same database. my site is a personal blog site. so I think it's secure enough not to abuse the trap 17 sever. if it's not appropriate to do that! then just forget about it. thanks |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
4 | A200 | 269 | 12th December 2008 - 04:32 AM Last post by: iG-yogasagar |
|||
![]() |
3 | chalawanonline | 424 | 2nd August 2004 - 02:34 PM Last post by: Spectre |
|||
![]() |
3 | zip_mc | 518 | 3rd August 2004 - 04:48 AM Last post by: X3r0X |
|||
![]() |
4 | odomike | 422 | 12th August 2004 - 05:20 AM Last post by: odomike |
|||
![]() |
3 | bttfpromo | 354 | 14th August 2004 - 03:46 AM Last post by: OpaQue |
|||
![]() |
7 | Raptrex | 578 | 27th August 2004 - 11:16 PM Last post by: Spectre |
|||
![]() |
4 | NuHoaXuLa | 481 | 29th August 2004 - 03:12 AM Last post by: NuHoaXuLa |
|||
![]() |
11 | Triple X | 824 | 5th September 2004 - 02:33 AM Last post by: Triple X |
|||
![]() |
2 | err | 499 | 2nd January 2009 - 07:07 AM Last post by: triplebtalk |
|||
![]() |
4 | Schweden | 346 | 8th September 2004 - 09:40 AM Last post by: Schweden |
|||
![]() |
2 | Too_Hot | 352 | 16th September 2004 - 05:25 PM Last post by: serverph |
|||
![]() |
2 | BoSZ | 467 | 17th September 2004 - 09:09 PM Last post by: BoSZ |
|||
![]() |
7 | XtremeGamer99 | 374 | 18th December 2008 - 10:13 PM Last post by: minimcmonkey |
|||
![]() |
8 | guangdian | 357 | 2nd October 2004 - 05:03 AM Last post by: football123213 |
|||
![]() |
1 | deejames | 441 | 5th October 2004 - 07:38 PM Last post by: alperuzi |
|||