As Sys admins we are often tasks with working on multiple and disparate systems we need to know a little about everything to allow use to do our jobs effectively. This post will detail my top five MySQL commands to know – with one bonus command! The commands are:
Create database wordpress;
This command creates a database call wordpress.
The Command shows all databases that reside on the server.
Selects the wordpress database for use – all subsequent commands will run the wordpress database.
Shows all tables within the current selected database.
select * from courses;
Displays all information from the courses table.
Bonus Command! grant all on WordPress.* to ‘wordpressuser’@’localhost’ identified by ‘wordpresspass’;
Grants all permissions on the WordPress database from the user wordpressuser from the local machine with the password wordpresspass
If you want to see these commands in action check out the youtube video here:
Also be sure to download the cheetsheet here which you can save and print out:
This Ubuntu Linux AWS tutorial will show you how to install Ubuntu on AWS. First you will open EC2 and search for the Ubuntu AMI. You will then step through the wizard to configure connectivity options ensuring that the Ubuntu server has a public IP allowing you to access. You will then generate a key to access your server. Next you will convert that key from pem to ppk using puttygen. Finally you will connect to your Ubuntu instance on AWS using putty Putty & Puttygen are available from:
This Virtualbox tutorial will show you how to take a snapshot on Virtualbox. First you will see how to take a snapshot of a running virtual machine. You will then see how to restore the snapshot. Snapshots allow you to save the state of a virtual machine; this can be useful when you want to test something, or you’re about to make a change to that virtual machine, and you need to be able to roll back to a working instance. Snapshots have saved me on numerous occasions and are an excellent feature!