MySQL Forums
Forum List  »  Spanish

Como hacer para que el MySQL no me dumpee el DEFINER
Posted by: Roberto Reategui
Date: August 24, 2016 02:48PM

Cada vez que hago un dump de un sp/view o trigger me crea una seccion que se llama DEEFINER donde se guardan los datos del usuario que los creo, pero con estos datos tengo problemas al subirlo a un hosting ya que me sale que el usuario no tiene permiso para crear sp/View/Trigger a pesar que si se tienen nivel de super administrador.

Que parametros puedo poner para que el MySQLDump no me escriba el DEFINER?

/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER `tg_habitaciones_alquiler_insert` BEFORE INSERT ON `habitaciones_alquiler`
FOR EACH ROW BEGIN
SET NEW.Hora := CURTIME();
CALL sp_alquiler_estados(NEW.AlquilerID, NEW.Precio, NEW.Desde, NEW.Hasta);
CALL sp_clientes_ocupantes(NEW.AlquilerID, NEW.ClienteID);
END */;;

Options: ReplyQuote


Subject
Views
Written By
Posted
Como hacer para que el MySQL no me dumpee el DEFINER
1178
August 24, 2016 02:48PM


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.