|
|
|
 |
|  |
 |
Hamelin |
[MySQL] Connessione remota |
22-12-2005 19:19 |
|
 |
Hamelin |
.pifferaio.magico.

Registered: Feb 2003
Posts: 662 (0.08 al dì)
Location: ..tra i monti intorno ad Hamelin..
Corso: Ingegneria Informatica
Anno: 3°
Time Online: 7 Days, 7:19:55 [...]
Status: Offline
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 |
|
|
|  |
 |
DeepBlue |
In effetti non ho capito molto, ma ho paura che tu ... |
22-12-2005 19:37 |
|
 |
DeepBlue |
tired guy

Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline
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 |
|
|
|  |
 |
yeah |
Se vuoi collegarti direttamente a MySQL con il cli ... |
22-12-2005 20:12 |
|
 |
yeah |
.grande:maestro.

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
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 |
|
|
|  |
 |
Hamelin |
Messa lì banalmente mi piacerebbe comportarmi com ... |
22-12-2005 20:13 |
|
 |
Hamelin |
.pifferaio.magico.

Registered: Feb 2003
Posts: 662 (0.08 al dì)
Location: ..tra i monti intorno ad Hamelin..
Corso: Ingegneria Informatica
Anno: 3°
Time Online: 7 Days, 7:19:55 [...]
Status: Offline
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 |
|
|
|  |
 |
yeah |
Beh, che io sappia, via web c'è PHPMyAdmin, dovre ... |
22-12-2005 22:01 |
|
 |
yeah |
.grande:maestro.

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
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 |
|
|
|  |
 |
Viry |
Allora, devi fare due operazioni sulla macchina do ... |
22-12-2005 22:23 |
|
 |
Viry |
dsy moderator

Registered: Oct 2002
Posts: 2429 (0.29 al dì)
Location: Milano
Corso: Ticom
Anno: primo
Time Online: 43 Days, 3:27:12 [...]
Status: Offline
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 |
|
|
|  |
 |
N@RV1 |
[QUOTE][i]Originally posted by Hamelin [/i]
... |
22-12-2005 22:58 |
|
 |
N@RV1 |
www.narv1.net
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
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 )
__________________
.:N@RV!:.
|
22-12-2005 22:58 |
|
|
|  |
 |
All times are GMT. The time now is 02:54. |
|
|
 |
|
 |
|
|
|  |
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
|
|
|
|
|
|