Handy Mysql Commands Description Command
Handy Mysql Commands Description Command
Description Command
To login (from
unix shell) use -h [mysql dir]/bin/mysql -h hostname -u root -p
only if needed.
Create a database
create database [databasename];
on the sql server.
List all databases
show databases;
on the sql server.
Switch to a
use [db name];
database.
To see all the
show tables;
tables in the db.
To see database's
describe [table name];
field formats.
To delete a db. drop database [database name];