Re: MySQLDump no me incluye el USE MiBaseDatos
Quote
--no-create-db
Ok...
¿Y qué se supone que crees que hace ese parámetro?
Quote
--no-create-db, -n
Suppress the CREATE DATABASE statements that are otherwise included in the output if the --databases or --all-databases option is given.
Si no incluye la creación de la base, tampoco va a incluir el USE. ¨¿No te parece lógico?
Indicar que no se genere el esquema o base de datos implica que la restauración la vas a hacer en cualquier base que creas tu mismo. Y si la creas tu mismo, entonces eres TU el que tiene que indicar que se cargue en ella.
Para hacer eso, puedes acudir al manual de referencia, accesible en este mismo sitio, donde puedes ver este ejemplo:
Quote
You can execute SQL statements in a script file (batch file) like this:
shell> mysql db_name < script.sql > output.tab
Subject
Views
Written By
Posted
1385
March 11, 2016 01:04PM
Re: MySQLDump no me incluye el USE MiBaseDatos
644
March 24, 2016 07:56AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.