Browsing Category


mysql Putty Commands

Log onto mysql: mysql -p mysql -u root -p Create a database: mysql> create database [database name]; Show all databases: mysql> show databases; Select database: mysql> use [database name] Show your database tables: mysql> show tables; Find database directory: mysql> select @@datadir; Create user: mysql> grant all privileges on [database name].* to ‘[username]’@’localhost’ identified by…

Read More

Common WordPress Problem Fixes

Permalinks to ‘Postname’ cause Page Not Found To fix, find your Apache httpd.conf file. Look for the code: LoadModule rewrite_module modules / If there a # (comment out) in front of the code above, remove the #. Save and restart your server.

Useful Putty Commands

Navigate directories: cd .. cd [FOLDERPATH]/ Change owner of a file/folder: chown [USERNAME] [FILENAME] chown [USERNAME] -R [FOLDERNAME] Move a file: mv [FILENAME].ext [NEWDIRECTORY]/ Move a directory: mv [FOLDERNAME]/ [NEWDIRECTORY]/ Change File/Folder Permissions: chmod 755 [filename].ext Change Permission for all files/folder in current folder: chmod -R 755 Compress folder to download: tar cvfz [OUTPUTNAME].tar.gz [FOLDERNAME]/…

Read More

jquery Countdown

Here’s a simple way to add a countdown to your website. Quick overview 1. Link these javascript libraries to your html page. <script src=”http://”></script> <script src=””></script> 2. Add the following script to your page. <script type=”text/javascript”> $(‘#jcountdown’).countdown(‘2016/01/01 00:00:00’, function(event) { var $this = $(this).html(event.strftime(” + ‘<span>%-D</span> days ‘ + ‘<span>%H</span> hr ‘ + ‘<span>%M</span> min…

Read More