MySQL is a relational database management system which, in July 2013, was the world's second most widely used and the most widely used open -- source client-server RDBMS source.
$ mysql -u <user> -p
$ mysql -u <user> -p <database-name>
mysql> ready for new command
-> waiting for next line of a command
'> waiting for next line of a string started with apostrophe
"> as above, but for double quote
`> as above, but for back tick
/*> as above, but for comment
mysql> quit
mysql> create database <name>;
mysql> drop database <name>;
mysql> show databases;
mysql> use <database-name>;
mysql> show tables;
mysql> describe <table-name>;
mysql> drop <table-name>;
$ mysqldump -u <username> -p --no-create-info <database-name> > output.sql
$ mysqldump -u <username> -p --no-data <database-name> > output.sql
Written by Stephen Moon ([email protected]), 2016