mysqldump --opt -u user --password="password" --compatible=name
nome_database > nomedump.sql Se il dump deve essere importato in un dbms diverso da MySql va aggiunta una opzione che riguarda la compatibilità (--compatible)
che può assumere il valore: ansi, mysql323, mysql40, postgresql, oracle, mssql, db2, maxdb, no_key_options, no_table_options, or no_field_options
L'opzione --opt incorpora varie opzioni per il lock della tabella durante la export ed altri accorgimenti sulla gestione errori e sull'integrità.Il file di export può essere importato su un altro database molto comodamente eseguendo il comando
mysql -e "source nomedump.sql" nome_database Un saluto a fox

Nessun commento:
Posta un commento