Skip to content

Instantly share code, notes, and snippets.

@titaniumtails
Last active August 29, 2015 14:09
Show Gist options
  • Save titaniumtails/94b687fee632b6f14ee7 to your computer and use it in GitHub Desktop.
Save titaniumtails/94b687fee632b6f14ee7 to your computer and use it in GitHub Desktop.
PostgreSQL & mySQL CLI commands

###Useful PG & MYSQL command line interface commands:

database enter CLI exit CLI table databases change databases columns describe
mysql mysql exit SHOW TABLES SHOW DATABASES use database_name SHOW COLUMNS DESCRIBE TABLE
postgresql psql \q \d \l \c database_name \d table \d+ table

To check our port is up and running with Postgres:

netstat -lan | grep 5432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment