Skip to content

Instantly share code, notes, and snippets.

@skippednote
Created February 16, 2014 05:01
Show Gist options
  • Select an option

  • Save skippednote/9029541 to your computer and use it in GitHub Desktop.

Select an option

Save skippednote/9029541 to your computer and use it in GitHub Desktop.

MySQL Cheatsheet

  • Start console mysql -u user -p password

  • Show existing databases show databases

  • Use a database use databaseName

  • Create a new database create databases databaseName

  • Show tables of the database being used show tables

  • View fields from a table describe tableName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment