This is a quick snippet in the list of things I don’t want to remember but need a place to quickly find the answer. Only difference is I figured others could benefit from this.
So, need to clear the DNS cache in Leopard? Open Terminal (Applications>Utilities>Terminal) and type the following command then hit ENTER.
dscacheutil -flushcache
Note: You may need to restart your browser for the changes to occur.
Another quick snippet.
How to restart a Linux server using only the command line.
Start by opening Terminal (Mac) or Putty (Windows) and enter the following, then hit ENTER.
/sbin/shutdown -r now
Warning: Always make sure the -r is included or the server will simply shutdown. Forcing you to manually reboot it. Unless your host provides something similar to Rapid Reboot (ServerBeach).
Here is how to quickly backup a MySQL database using the command line.
Start by opening Terminal (Mac) or Putty (Win) and follow these commands.
Backing up a database
mysqldump -h hostname -u user --password=password databasename > filename
Restoring a database
mysql -h hostname -u user --password=password databasename < filename