This page is a memo of how to do some tasks with the MySQL database engine.
mysql> CREATE DATABASE name;where
name is the name of the new database.
mysql> USE name;where
name is the name of the database you wish to use.
mysql> SHOW DATABASES;
mysql> SHOW TABLES;
mysql> CREATE TABLE name (numbers INTEGER);Here
name is the name of the table, and numbers is the name of the column which contains the numbers.
To make a new table which can contain a list of numbers and words,
mysql> CREATE TABLE name (numbers INTEGER, words TEXT);
mysql> DROP TABLE name;where
name is the name of the table you wish to remove.
mysql> DROP DATABASE name;where
name is the name of the database you wish to remove.