If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL server date

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-10, 19:50
jdoner28 jdoner28 is offline
Registered User
 
Join Date: May 2010
Posts: 2
MySQL server date

Hello,

I am pretty new to MySQL. I want to build some MySQL databases but at an older date than the current one on my server. I need this because the database will be used to post articles to my site at certain times and since I already have articles posted on it (without using any database), I want to be able to add these articles to the database but at the actual time they were posted at.

I tried to change the server date through root access before building the MySQL database, but it is not letting me do so. I am using a cpanel hosting but the server is not dedicated to me.

Any way I can do that with MySQL?

Thanks
Reply With Quote
  #2 (permalink)  
Old 05-29-10, 21:30
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
instead of messing with the server date, why don't you just add your older articles with a backdated date
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 05-30-10, 05:36
jdoner28 jdoner28 is offline
Registered User
 
Join Date: May 2010
Posts: 2
It is because I am using a php script that I load the articles to it once a month and then it schedules them every tuesday, thursday and sunday starting from the last upload date. So, If I add them now, they will start from the current date of the server... even if i change the upload date, in myphpadmin, the next batch will go from the scheduled date not from the one I modified.

I am thinking of renting a virtual server (VPS). I heard you can change the date on some of them. I can build the database there and then import it to my current server.
Reply With Quote
  #4 (permalink)  
Old 05-30-10, 08:54
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
you need to fix that php script
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On