Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
TIMESTAMP confusion

TIMESTAMP confusion

2005-01-06       - By Jan Eden

 Back
Reply:     1     2     3  

Hi,

I maintain a database locally which is queried via a Perl script to generate my
website. Now there is one field of the TIMESTAMP type which should reflect the
respective page's last modification date. This works fine when the database is
queried locally.

But when I dump the database (using mysqldump), transfer it to my webserver and
import the dump into the database on the server, some pages carry the correct
timestamp, while others have the timestamp of the import.

Why is that? The tables are all dropped and recreated prior to inserting the
data. Now I could understand if all the pages get a new timestamp (i.e. if the
current value is not honored at all), but some pages are not affected.

Those pages still carry the timestamp from the time when I initially added the
TIMESTAMP field to my database. Why should this timestamp be more sticky than
others?

Thanks,

Jan
--
How many Microsoft engineers does it take to screw in a lightbulb? None. They
just redefine "dark" as the new standard.

--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/perl?unsub=mysql@(protected)