.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Tech (http://www.dsy.it/forum/forumdisplay.php?forumid=189)
-- [MySQL] Connessione remota (http://www.dsy.it/forum/showthread.php?threadid=23286)


Posted by Hamelin on 22-12-2005 19:19:

[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."


Posted by DeepBlue on 22-12-2005 19:37:

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! ~


Posted by yeah on 22-12-2005 20:12:

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

__________________
?


Posted by Hamelin on 22-12-2005 20:13:

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."


Posted by yeah on 22-12-2005 22:01:

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

__________________
?


Posted by Viry on 22-12-2005 22:23:

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"


Posted by N@RV1 on 22-12-2005 22:58:

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!:.


All times are GMT. The time now is 09:47.
Show all 7 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.