Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [MySQL] Connessione remota
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Hamelin
.pifferaio.magico.

User info:
Registered: Feb 2003
Posts: 662 (0.08 al dì)
Location: ..tra i monti intorno ad Hamelin..
Corso: Ingegneria Informatica
Anno:
Time Online: 7 Days, 7:19:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[MySQL] Connessione remota

Scusate la domanda probabilmente stupida... Come mi posso connettere a un database MySQL remoto senza dover passare per uno script (PHP nel mio caso)? Ho già una serie di istruzioni SQL e dati in un po' di file e sarei molto più comodo a sparar dentro qualche comando che non a gestire tutto tramite script... vabbe'... non so nemmeno se mi son fatto capire.

__________________
Bjarne Stroustrup: "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone."
Andrew S. Tanenbaum: "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway."
Edsger Dijkstra: "Computer Science is no more about computers than astronomy is about telescopes."
Robert Firth: "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs."
Donald Knuth: "A mathematical formula should never be 'owned' by anybody! Mathematics belong to God."

22-12-2005 19:19
Click Here to See the Profile for Hamelin Click here to Send Hamelin a Private Message Visit Hamelin's homepage! Find more posts by Hamelin Add Hamelin to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In effetti non ho capito molto, ma ho paura che tu abbia bisogno di un accesso ssh alla macchina (o comunque di un qualche tipo di prompt remoto)

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

22-12-2005 19:37
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.21 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se vuoi collegarti direttamente a MySQL con il client, mi sa che devi fare come dice DeepBlue.

Se il problema è dover passare i dati al db, però, MySQL supporta il caricamento diretto da file attraverso LOAD DATA

__________________
?

22-12-2005 20:12
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Hamelin
.pifferaio.magico.

User info:
Registered: Feb 2003
Posts: 662 (0.08 al dì)
Location: ..tra i monti intorno ad Hamelin..
Corso: Ingegneria Informatica
Anno:
Time Online: 7 Days, 7:19:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Messa lì banalmente mi piacerebbe comportarmi come in locale... digito il comando mysql e il programma è al mio servizio.
Non esistono client MySQL?
Comunque ho fatto via PHP e morta lì...

__________________
Bjarne Stroustrup: "I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone."
Andrew S. Tanenbaum: "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway."
Edsger Dijkstra: "Computer Science is no more about computers than astronomy is about telescopes."
Robert Firth: "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs."
Donald Knuth: "A mathematical formula should never be 'owned' by anybody! Mathematics belong to God."

22-12-2005 20:13
Click Here to See the Profile for Hamelin Click here to Send Hamelin a Private Message Visit Hamelin's homepage! Find more posts by Hamelin Add Hamelin to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.21 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Beh, che io sappia, via web c'è PHPMyAdmin, dovrebbe permettere di gestire il database in modo visuale, ma non l'ho mai provato.

__________________
?

22-12-2005 22:01
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Viry
dsy moderator

User info:
Registered: Oct 2002
Posts: 2429 (0.29 al dì)
Location: Milano
Corso: Ticom
Anno: primo
Time Online: 43 Days, 3:27:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Allora, devi fare due operazioni sulla macchina dove risiede il db.
Per prima cosa, in my.cnf, devi dire al mysql di ascoltare sull'indirizzo esterno (di default, ascolta solo su localhost)

code:
bind_address = 127.0.0.1 bind-address = ip_della_macchina

dopodiche' accedi al mysql come utente root e dai questo comando:
code:
mysql> grant all privileges on *.* to 'hamelin'@'%' identified by 'password'; Query OK, 0 rows affected (0.00 sec)

dopodiche' dalla macchina che vuoi, ti puoi collegare al mysql remoto semplicemente digitando
code:
mysql -h macchina_db -ppassword (senza spazi tra il -p e la password)

__________________
When once you have tasted flight, you will walk the earth, forever more, with your eyes turned skyward. For there you have been, and there you long to return.

“Dovere, tempo, destino, tutto tende a separarci e, di fatto, ci separa. Ma il sentimento non conosce frontiere e mi unisce a te come se avessi sempre la mia mano sulla tua"

Last edited by Viry on 22-12-2005 at 22:34

22-12-2005 22:23
Click Here to See the Profile for Viry Click here to Send Viry a Private Message Find more posts by Viry Add Viry to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
N@RV1
www.narv1.net

User info:
Registered: Jan 2004
Posts: 759 (0.10 al dì)
Location: Garbagnate Milanese
Corso: TICOM
Anno: Primo
Time Online: 9 Days, 9:55:12 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Hamelin
Messa lì banalmente mi piacerebbe comportarmi come in locale... digito il comando mysql e il programma è al mio servizio.
Non esistono client MySQL?
Comunque ho fatto via PHP e morta lì...



Ma se usi i plugin visuali di mysql non vanno bene?!
tipo MySQLAdministrator o MySQLQueryBrowser?!(insieme:D)

__________________
.:N@RV!:.

22-12-2005 22:58
Click Here to See the Profile for N@RV1 Click here to Send N@RV1 a Private Message Visit N@RV1's homepage! Find more posts by N@RV1 Add N@RV1 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 02:54.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.122 seconds (72.63% PHP - 27.37% MySQL) con 23 query.