Useful Linux find Commands

Terminal

General Find all files and directories starting from the current directory (including all subdirectories). $ find . Find all files starting from the current diretory (including all subdirectories). $ find . -type f Find all directories starting from the current directory (including all subdirectories). $ find . -type d Find all hidden files starting from […]

Backup your WordPress Website to Dropbox on a Mac

wordpress-logo-notext-rgb

We learned how to Backup & Restore a MySQL database HERE We learned how to tar a directory HERE Now lets combine this knowledge and backup our WordPress Website directly to Dropbox. You will need the following information: Web Server Name (hostname) MySQL User Name MySQL Password MySQL Database Name Root Website Directory Dropbox Directory Location […]

Reset Root MySQL Password

mysql_logo

Error: $ mysql -u root Error 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO) Stop mysqld deamons: $ sudo service mysql stop Start a mysql deamon with the –skip-grant-table option: $ sudo mysqld_safe –skip-grant-tables Open a separate terminal and and run the following commands: $ mysql mysql> use mysql; mysql> UPDATE user SET password=PASSWORD(‘YOUR_NEW_PASSWORD_HERE’) WHERE […]