mysql workbench - alexandru ioan cuza university · visual schema design - cont • change...

15
MANUEL SUBREDU MSD - I MYSQL WORKBENCH

Upload: others

Post on 10-Jan-2020

13 views

Category:

Documents


0 download

TRANSCRIPT

M A N U E L S U B R E D U M S D - I

MYSQL WORKBENCH

ABOUT

•  Free unified visual tool •  Target: •  database architects •  developers •  DBA’s (DataBase Admins)

•  Provides: •  Data modeling •  SQL development •  Administration tools

•  Cross platform: •  Windows •  MacOSX •  Linux

VISUAL SCHEMA DESIGN

•  Main characteristics: •  Uses Model Driven Database Design •  Model and Schema Validation (commercial version only) •  Uses all MySQL specific features, including advanced ones like:

partitioning, InnoDB, Views, stored SQL Procedures. •  Forward engineering •  existing model into: •  physical database •  SQL scripts

•  generated SQL scripts run on the server at runtime •  Reverse engineering •  Sources: •  existing databases •  SQL scripts

VISUAL SCHEMA DESIGN - CONT

•  Change Management •  database schema versioning •  schema syncronization and comparison utility •  synchronization (with conflict management) between a

model and a live database – both ways •  comparison between: •  two live databases •  model and a live database

•  Visualisal representation of differences

•  Documentation •  each table/row can have it’s own documentation •  flexible report generation based on all model data

VISUAL SCHEMA DESIGN - SCREENSHOTS

VISUAL SCHEMA DESIGN - SCREENSHOTS

VISUAL SCHEMA DESIGN - SCREENSHOTS

VISUAL SCHEMA DESIGN - SCREENSHOTS

SQL DEVELOPMENT

•  Integrated Visual SQL Editor •  syntax highlight •  EXPLAIN support •  Parallel execution of multiple SQL queries •  Easy edit of the data using standard grid format •  Data can be exported into several formats (CSV, HTML, XML,

SQL INSERT) •  Complex history support •  Most used SQL Selects, DML and DDL code can be saved/

grouped into snippets.

SQL DEVELOPMENT - SCREENSHOTS

SQL DEVELOPMENT - SCREENSHOTS

SQL DEVELOPMENT - SCREENSHOTS

SERVER ADMINISTRATION

•  User administration (privileges, passwords, access lists) •  Server configuration (runtime parameters for fine

tunning) •  Server logs (error logs, binary logs, InnoDB logs) into

a single interface •  Database(s) import and export •  General server and system status (load, users,

queries no, etc)

SAVING MODELS - MWB

•  Models are saved into .mwb files (zip files), which contains the following files: •  document.mwb.xml •  lock •  @db/data.db

•  Very little information regarding mwb file structure and format. •  No DTD or XSL files found L

THE END

•  Homepage: http://www.mysql.com/products/workbench/ •  Version used in this presentation: 5.2

Q ?