Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/09/2011, 12:04
Avatar de el_javi
el_javi
 
Fecha de Ingreso: marzo-2005
Ubicación: MAdrid
Mensajes: 844
Antigüedad: 19 años, 1 mes
Puntos: 10
Cambiar fecha y hora del Servidor MySQL

Hola a todos.

Tengo un problema...

Tengo el servidor MySQL alojado en un hosting extranjero (es de un cliente).

El problema vien en que si actualizamos un registro de la base de datos, guarda la fecha de actualización con un campo DATETIME.

Dicho campo difiere en 2 horas y 21 minutos de la fecha y hora nacional (española).

Estoy mirando para cambiar la fecha o el timestamp de MySQL y la única información que encuentro es esta:

http://dev.mysql.com/doc/refman/4.1/...e-support.html

La cuestión es que:

Hago un extracto:

Cita:
I thought this information will helps somebody who are looking for changing mysql timezone.

The steps are:

1. Download the timezone table structure and data from http://dev.mysql.com/downloads/timezones.html

2. Copy and paste the data in your Mysql/data/mysql folder

3. Restart your mysql server.

4. mysql> SET GLOBAL time_zone = 'America/Toronto';

5. mysql> SET SESSION time_zone = 'America/Toronto';

6. Check SELECT @ @global.time_zone , @ @session.time_zone ;
It should give you the time zone you set just before.
Llegado el paso 4, yo hago: SET GLOBAL time_zone = 'Europe/Madrid'; y MySQL me dice
Cita:
#1298 - Unknown or incorrect time zone: 'Europe/Madrid'
¿Porqué no puedo cambiar mi timezone? ¿alguien que pueda ayudarme con ello?

Gracias y un saludo!!

Javier