Database Administation with MySQL Display all databases installed in MYSQL : Show databases;... Create a table • CREATE TABLE table_name column_name1 type [modifiers] [, column_name2
Trang 1Software Installation for
Java Course
NGUYEN Hong Quang
FIT HUT
Trang 3Install Java
Unzip
Run
Trang 4Setting classpath for JDBC
Driver class as a archive file:
Trang 5Install MySQL
Trang 6Install MySQL : Step 1
Trang 13Configuration of MySQL
Trang 14Configuration of MySQL : step 1
Trang 23Configuration of MySQL : step 10
Trang 27Configuration of MySQL : step 14
Trang 28Database Administation with MySQL
Display all databases installed in MYSQL :
Show databases;
Trang 29Create a table
• CREATE TABLE table_name (
column_name1 type [modifiers]
[, column_name2 type [modifiers]] )
• Create table Student :
CREATE TABLE student (
ID int(6) PRIMARY KEY,
Trang 30Database Administation with MySQL (1)
Create a database :
CREATE DATABASE TEMPDB;
Delete that database :
DROP DATABASE TEMPDB;
Use a database :
USE TEMPDB;
Display tables in a database :
SHOW TABLES;
Trang 31Database Administation with MySQL (2)
Display all databases installed in MYSQL :
Show databases;
Trang 32Database Administation with MySQL (3)
Display all databases installed in MYSQL :
Create databases qlsv;
Trang 33Database Administation with MySQL (4)
Display all databases installed in MYSQL :
use databases qlsv; show tables;
Trang 34Database Administation with MySQL (5)
Display all databases installed in MYSQL :
create tables student;
Trang 35Create a connection to MySQL (1)
Select a right mouse in the “Table” Window
Trang 36Connecting DbEdit with MySQL (2)
Trang 41Connecting DbEdit with MySQL
Trang 42Input records with DbEdit
Trang 43MySQL – Front (1)
Connect to MySQL host
Trang 44MySQL – Front (1)
Object browser
Trang 45MySQL – Front (2)
Create new database
Trang 46MySQL – Front (3)
Create new table
Trang 47MySQL – Front (3)
Create new table
Trang 48MySQL – Front (3)
Query
Trang 49Test Tomcat on Vista (1)
Trang 50Test Tomcat on Vista (2)
Trang 52Start Tomcat on Eclipse (1)