Run this to create an empty database: mysql -u username -p -e ‘CREATE DATABASE database’ Backup the database with the command: mysql -u username -p database > path/to/backup.sql Restore the database with the command: mysql -u username -p database < …

Mysql Read more »

DOS or CMD copy or move with DATE OR set cdate=%date:~4,2%-%date:~7,2%-%date:~10,4% copy file.txt %cdate%_file.txt From http://www.windowsitpro.com/Article/ArticleID/13575/13575.html @Echo OFFTITLE DateNameREM DateName.CMDREM takes a filename as %1 and renames as YYMMDDHHMM_%1REMREM ————————————————————-IF %1.==. GoTo USAGESet CURRDATE=%TEMP%CURRDATE.TMP  DATE /T > %CURRDATE%  Set PARSEARG=”eol=; …

Append the date and time to a file Read more »