I have a mysql database that is meant to be used on a "demo" website. I need this to be restored or reset each hour.
I have have tried two methods to accomplish this and tried each method several ways (from what I read, either method should work as good as the other).
I am using a VPS on Dreamhost.
Here is what my CRON job looks like:
mysql -h my_db_host -u my_username -pmy_password my_db_name < /home/usr/scripts/simplecrud.sql
Error that I am getting each time the job runs is
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
How can I fix this ... what am I missing?