Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General » Mysql »

Duda con SET GLOBAL log_bin_trust_function_creators = 1;

Estas en el tema de Duda con SET GLOBAL log_bin_trust_function_creators = 1; en el foro de Mysql en Foros del Web. Hola, tengo una duda con SET GLOBAL log_bin_trust_function_creators = 1; Hay alguna forma de dejar en 1 o ON para siempre esta variable? Lo pregunto ...
  #1 (permalink)  
Antiguo 05/05/2010, 09:26
Avatar de Frehley  
Fecha de Ingreso: junio-2005
Ubicación: Somewhere between Heaven and Hell
Mensajes: 415
Antigüedad: 18 años, 10 meses
Puntos: 0
Duda con SET GLOBAL log_bin_trust_function_creators = 1;

Hola, tengo una duda con SET GLOBAL log_bin_trust_function_creators = 1;

Hay alguna forma de dejar en 1 o ON para siempre esta variable? Lo pregunto porque cada vez que me vuelvo a loguear la variable vuelve a 0 y quisiera que se mantenga en 1.

Muchas gracias!
__________________
diegoz.com.ar
  #2 (permalink)  
Antiguo 05/05/2010, 10:13
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Duda con SET GLOBAL log_bin_trust_function_creators = 1;

Cita:
To relax the preceding conditions on function creation (that you must have the SUPER privilege and that a function must be declared deterministic or to not modify data), set the global log_bin_trust_function_creators system variable to 1. By default, this variable has a value of 0, but you can change it like this:

mysql> SET GLOBAL log_bin_trust_function_creators = 1;
You can also set this variable by using the --log-bin-trust-function-creators=1 option when starting the server.

If binary logging is not enabled, log_bin_trust_function_creators does not apply. SUPER is not required for function creation unless, as described previously, the DEFINER value in the function definition requires it.
Tomado de
http://dev.mysql.com/doc/refman/5.0/...s-logging.html

Al momento de iniciar el servidor puedes levantarla y quedará por defecto.

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #3 (permalink)  
Antiguo 06/05/2010, 06:21
Avatar de Frehley  
Fecha de Ingreso: junio-2005
Ubicación: Somewhere between Heaven and Hell
Mensajes: 415
Antigüedad: 18 años, 10 meses
Puntos: 0
Respuesta: Duda con SET GLOBAL log_bin_trust_function_creators = 1;

Gracias, pero no entiendo como seria eso de levantarla en el momento que levanto el servidor, como haría eso desde la consola de mysql?

Muchas gracias!
__________________
diegoz.com.ar
  #4 (permalink)  
Antiguo 06/05/2010, 06:55
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Duda con SET GLOBAL log_bin_trust_function_creators = 1;

para el servicio de mysql y trata de levantarlo con
mysqld --log-bin-trust-function-creators=1
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #5 (permalink)  
Antiguo 06/05/2010, 07:30
Avatar de Frehley  
Fecha de Ingreso: junio-2005
Ubicación: Somewhere between Heaven and Hell
Mensajes: 415
Antigüedad: 18 años, 10 meses
Puntos: 0
Respuesta: Duda con SET GLOBAL log_bin_trust_function_creators = 1;

Me parece que estoy cerca, esto me crea el servicio, pero no me modifica la variable, me podrias decir que tiene mal?

Cita:
rem comment run.bat
C:
cd C:\MySQL\bin
mysqld.exe --install MySQL-noinstall --defaults-file="c:\MySQL\my.ini --log-bin-trust-function-creators=1"
Muchas gracias!
__________________
diegoz.com.ar
  #6 (permalink)  
Antiguo 06/05/2010, 07:45
Avatar de huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: Duda con SET GLOBAL log_bin_trust_function_creators = 1;

mysqld.exe --install MySQL-noinstall --defaults-file="c:\MySQL\my.ini" --log-bin-trust-function-creators=1

Creo que cerrabas comillas en la parte equivocada.

Nos cuentas como te va.
__________________
Without data, You are another person with an opinion.
W. Edwads Deming
  #7 (permalink)  
Antiguo 06/05/2010, 07:50
Avatar de Frehley  
Fecha de Ingreso: junio-2005
Ubicación: Somewhere between Heaven and Hell
Mensajes: 415
Antigüedad: 18 años, 10 meses
Puntos: 0
Respuesta: Duda con SET GLOBAL log_bin_trust_function_creators = 1;

Gracias, ahora me tira este error, parece que no termina nunca esto >_<

100506 10:49:15 [Warning] '--skip-locking' is deprecated and wil be removed in
a future release. Please use '--skip-external-locking' instead.

Cita:
rem comment install.bat
C:
cd C:\MySQL\bin
mysqld.exe --install MySQL-noinstall --defaults-file="c:\MySQL\my.ini" --log-bin-trust-function-creators=1

pause
Alguna idea?
Me paree que es un problema de sintaxis, porque si solamente pongo el argumento para setear la variable lo hace bien

Gracias!
__________________
diegoz.com.ar

Última edición por Frehley; 06/05/2010 a las 10:26
  #8 (permalink)  
Antiguo 07/05/2010, 09:33
Avatar de Frehley  
Fecha de Ingreso: junio-2005
Ubicación: Somewhere between Heaven and Hell
Mensajes: 415
Antigüedad: 18 años, 10 meses
Puntos: 0
Respuesta: Duda con SET GLOBAL log_bin_trust_function_creators = 1;

En el my.ini cambie skip-locking por skip-external-locking y ahora no me tira ese error, simplemente no hace nada
Esto es lo que tengo hasta ahora
Cita:
rem comment install.bat
C:
cd C:\MySQL\bin
mysqld --install MySQL-noinstall --defaults-file="c:\MySQL\my.ini" --log-bin-trust-function-creators=1
NET START MySQL-noinstall
mysql --host=localhost --port=3306 --user=root --password=mipassword < "C:\MySQL\backup.sql"
pause
Gracias!
__________________
diegoz.com.ar

Etiquetas: global, set
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Tema Cerrado




La zona horaria es GMT -6. Ahora son las 04:28.