![]() |
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)
[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."
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! ~
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
__________________
?
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."
Beh, che io sappia, via web c'è PHPMyAdmin, dovrebbe permettere di gestire il database in modo visuale, ma non l'ho mai provato.
__________________
?
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
code:
mysql> grant all privileges on *.* to 'hamelin'@'%' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
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"
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ì...
__________________
.: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.