Results 1 to 13 of 13

Thread: Esportare un DB mysql

  1. #1
    Lieutenant Commander Axet's Avatar
    Join Date
    Sep 2003
    Location
    Ginevra
    Posts
    33.807

    Default Esportare un DB mysql

    Ho scritto un DB con mysql, mo devo spostare il tutto su un'altra macchina..
    Come? Mi basta che venga preservata la struttura delle tabelle, non mi interessano i dati.

    Probabilmente è una domanda del cazzo eh ma non l'ho mai fatto ergo onde evitare di fare qualche puttanata prima mi informo

    I'm no hero. Never was. Never will be.
    -----
    Soul of the mind, key to life's ether
    Soul of the lost, withdrawn from its vessel
    May strength be granted so the world might be mended...
    So the world might be mended...

  2. #2
    Lieutenant Commander Mosaik's Avatar
    Join Date
    Dec 2004
    Location
    Roma
    Posts
    9.724

    Default

    PHPMyAdmin?



    Salta i primi 40 secondi

  3. #3
    Lieutenant Commander Axet's Avatar
    Join Date
    Sep 2003
    Location
    Ginevra
    Posts
    33.807

    Default

    Quote Originally Posted by Mosaik View Post
    PHPMyAdmin?
    Wut?

    Come già detto la mia esperienza in materia a parte la mera scrittura di DB è nulla

    I'm no hero. Never was. Never will be.
    -----
    Soul of the mind, key to life's ether
    Soul of the lost, withdrawn from its vessel
    May strength be granted so the world might be mended...
    So the world might be mended...

  4. #4
    Lieutenant Commander Mosaik's Avatar
    Join Date
    Dec 2004
    Location
    Roma
    Posts
    9.724

    Default

    Se usi PHPMyadmin per accedere al MySQL guarda il video sopra altrimenti dicci che usi

  5. #5
    Lieutenant Commander Axet's Avatar
    Join Date
    Sep 2003
    Location
    Ginevra
    Posts
    33.807

    Default

    Navicat

    I'm no hero. Never was. Never will be.
    -----
    Soul of the mind, key to life's ether
    Soul of the lost, withdrawn from its vessel
    May strength be granted so the world might be mended...
    So the world might be mended...

  6. #6
    Lieutenant Commander Mosaik's Avatar
    Join Date
    Dec 2004
    Location
    Roma
    Posts
    9.724

    Default

    Uhm non lo conosco allora

  7. #7
    Lieutenant Commander Alkabar's Avatar
    Join Date
    Feb 2004
    Location
    Netherlands.
    Posts
    19.975

    Default

    il comando e' mysqldump
    e crei il dump del db.

    A sto punto prendi il dump lo porti nell'altra macchina e lo ripristini, mi sembra sempre con mysqldump.

  8. #8
    Lieutenant Commander San Vegeta's Avatar
    Join Date
    Oct 2003
    Location
    Bologna
    Posts
    12.153

    Default

    mysqldump permette di salvare sia struttura che dati, cmq il frontend grafico di mysql ha un comando per creare gli script di creazione dell'intero db
    I rubinetti a casa di Chuck Norris non perdono, vincono.

    In the beginning there was nothing...then Chuck Norris Roundhouse kicked that nothing in the face and said "Get a job". That is the story of the universe.

    Quote Originally Posted by Wolfo View Post
    Concordo e propongo ban temporanei per chi critica la topa , la topa non si critica , dal trombabile in su non si commenta in modo sgradevole.
    la tua ignoranza in materia e' raccapricciante
    -cit. Estrema, 2022

  9. #9
    Lieutenant Commander Axet's Avatar
    Join Date
    Sep 2003
    Location
    Ginevra
    Posts
    33.807

    Default

    Boh cmq in navicat se faccio click col destro sul db che mi serve mi dice tra le altre opzioni "Dump SQL File" e mi fa scegliere tra solo struttura o struttura + dati.
    Il punto è, se io lo creo così poi come lo ripristino usando solo riga di comando?

    Eventualmente, una volta creato con navicat il dump, posso usare phpmyadmin per reimportare il tutto? :O

    I'm no hero. Never was. Never will be.
    -----
    Soul of the mind, key to life's ether
    Soul of the lost, withdrawn from its vessel
    May strength be granted so the world might be mended...
    So the world might be mended...

  10. #10
    Lieutenant Commander Suppa's Avatar
    Join Date
    May 2004
    Posts
    5.098

    Default

    Claro que si
    "Computer games don’t affect kids. I mean if Pacman affected our generation as kids, we’d all be running around in a darkened room, munching pills and listening to repetitive electronic music."
    "What's a XBOX360 now? A beta-testing platform for the PS3 final version?"
    Official DickShit of [W] Games Pwnage!


    || www.cpstudio.net || www.framedealer.it || www.foto-genique.com ||

  11. #11
    Lieutenant Commander Axet's Avatar
    Join Date
    Sep 2003
    Location
    Ginevra
    Posts
    33.807

    Default

    du maron dovrò fare due test con la VM altrimenti se arrivo la e ci metto 2 ore a installare il tutto non ci fo una bella figura

    I'm no hero. Never was. Never will be.
    -----
    Soul of the mind, key to life's ether
    Soul of the lost, withdrawn from its vessel
    May strength be granted so the world might be mended...
    So the world might be mended...

  12. #12

    Default

    Per ripristinare da riga di comando di mysql: (su linux va sicuro, su win non sono convinto ma penso di si):

    mysql -u UTENTE -p < nomedelfile.sql

    naturalmente, per funzionare devi aver esportato (ovvero fatto il file sql) includendo l'informazione di creazione del db (cioè nel file .sql ci deve essere la riga "CREATE DATABASE nomedb")
    Jarsil, the Nervous Admin of [W] Forums
    Quote Originally Posted by Ipnotik
    non gli bastava averci tolto il nostro caro PD, ora ci tolgono pure l'ASD. Manca solo una coalizione di centrosx in italia chiamata LOL, e poi siamo al completo.

    Quote Originally Posted by spinoza.it
    Il premier: “L’Italia è vittima di un passato che non passa”. E di un dittatore con una ditta.

  13. #13
    Lieutenant Commander Axet's Avatar
    Join Date
    Sep 2003
    Location
    Ginevra
    Posts
    33.807

    Default

    Quote Originally Posted by Jarsil View Post
    Per ripristinare da riga di comando di mysql: (su linux va sicuro, su win non sono convinto ma penso di si):

    mysql -u UTENTE -p < nomedelfile.sql

    naturalmente, per funzionare devi aver esportato (ovvero fatto il file sql) includendo l'informazione di creazione del db (cioè nel file .sql ci deve essere la riga "CREATE DATABASE nomedb")
    Ho controllato, non c'è nel .sql t_T
    Vabbè domani farò qualche prova con phpmyadmin e vedo

    I'm no hero. Never was. Never will be.
    -----
    Soul of the mind, key to life's ether
    Soul of the lost, withdrawn from its vessel
    May strength be granted so the world might be mended...
    So the world might be mended...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 88.76 Kb. compressed to 75.04 Kb. by saving 13.72 Kb. (15.45%)]