Mysql Databases: Starting The Command-Line Interface
Mysql Databases: Starting The Command-Line Interface
o Cd xampp\mysql\bin
o MySQL –uroot –p
After logging in
Type show databases;
E.g..
Arguments Meaning
*.* All databases and all their objects
Database.* Only the databases called database
and all its objects
Database.object Only the database called database
and its object called object
Creating a table
DESCRIBE classics
MySQL CHAR data types
MySQL BINARY data types
MySQL BLOB data types
Numeric data types
Date and time
Adding the autoincrementing column
id
ALTER TABLE classics ADD id INT UNSIGNED NOT NULL AUTO_INCREMENT KEY;
More on data types
Adding the autoincrement id column at
the creation
Adding data into a table
Viewing data from the table