How to quickly copy a database from an old server to a new server
Resources:
Use the mysqldump command in conjunction with ssh
codes a lot
If the code is inexplicably missing from some of my posts it is because gist.github.com is down at the moment. Check back a little later.
Resources:
Use the mysqldump command in conjunction with ssh
Here is how to do it:
Date range to SQL clause
(6.months.ago.to_date..1.year.ago.to_date).to_s(:db) => ?BETWEEN ?2005-07-27? AND ?2005-01-22??
Here is a great cheat sheet for all those mysql command line commands in terminal