SlideShare a Scribd company logo
MySQL Work Bench
VISUAL DATABASE DESIGNING AND MODELING
1
A G A L Danushka | SEU/IS/14/PS/101
Introduction 2
MySQLWorkbench is a Visual database designing and
modeling access tool for MySQL server relational
database. It facilitates creation of new physical data
models and modification of existing MySQL databases
with reverse/forward engineering and change
management functions.
Why we should choose Work Bench?
 MySQLworkbench has tools that allow developers and database administrators visually
create physical database design models that can be easily translated into MySQL
databases using forward engineering.
 MySQL workbench supports creation of multiple models in the same environment.
 It supports all objects such as tables, views, stored procedures, triggers, etc. that make
up a database.
 MySQL workbench has a built in model validating utility that reports any issues that
might be found to the data modeler.
 It also allows for different modeling notations and can be extended by using LUA a
scripting language.
3
Installation
This is a 2 step process
1) Install MySQL Community Server
2) Install MySQL workbench.
Note: You will require Administrator or Power User Privileges to perform
installation.
4
Interface Overview
 Home Window
5
Interface Overview cont.. 6
Interface Overview cont.. 7
Create MySQL Server Connection 8
Click " + " in MySQL Workbench Home
Window. This will open Setup New Connection .
Create MySQL Server Connection cnt.. 9
Click Configure Server Management
button in Setup New Connection
window to check the cofiguration of
the MySQL server.
Create MySQL Server Connection cnt.. 10
A new window opens named
Configure Local Management . Click
Next button to continue.
Create MySQL Server Connection cnt.. 11
Next it will open a pop up window
asking your root password to test your
connection with the local mysql server
instance. The password is the one you
set during installation of MySQL
Workbench. Enter your password and
press OK
Create MySQL Server Connection cnt.. 12
Next the Wizard will test connections
to database. If test fails, go back and
correct database connection
parameters. Else if all tests are
sucessful click Next to continue.
Create MySQL Server Connection cnt.. 13
After that a new wizard will open
about Local Service Management - It
lets you switch between multiple mysql
severs installed on one machines. As a
beginner you can bypass this and click
Next to continue.
Create MySQL Server Connection cnt.. 14
The Wizard will then check ability to
access MySQL Server Configuration
File, and test start/stop commands.
Create MySQL Server Connection cnt.. 15
Next you can review current
configurations. After reviewing the
configurations, Click Finish to finsh
server cofiguration
Create MySQL Server Connection cnt.. 16
Next Step is to setup a
connection, which can be
used to connect to server. If
you have not created a
connection already, you can
use the default values given.
Click on Test Connection [ 2
] after entering the
Connection Name [ 1 ].
Create MySQL Server Connection cnt.. 17
A new dialog box will open
asking you password to
root/selected user. If your
MySQL root user has a
password, you can enter
that using Store in Vault
feature. Click OK.
Create MySQL Server Connection cnt.. 18
If the entered password for
the user is correct then the
following screen will show.
Click on both OK buttons
and you will be good to go
ER Modeling 19
In the MySQL workbench , Click - "+" Button Double click on Add Diagram button to open the
workspace for ER diagrams.
ER Modeling cont.. 20
Let's now create the members
table
1.Drag the table object from the
tools panel
2.Drop it in the workspace area.
An entity named table 1 appears
3.Double click on it. The
properties window shown below
appears
Repeat this for all tables
ER Modeling cont.. 21
Lets create relationship between
two tables
Select the place relationship using
existing columns too
Click on membership_number in
the Members table
Click on reference_number in the
MovieRentals table
ER Modeling cont.. 22
Your ER diagram should now look
like this
Forward engineering 23
MySQL workbench has utilities that support forward
engineering. Forward engineering is a technical term is to
describe the process of translating a logical model into a
physical implement automatically.
Forward engineering cont.. 24
Open the ER model
Click on the database menu.
Select forward engineer
Forward engineering cont.. 25
The next window, allows you to
connect to an instance of MySQL
server.
Click on the stored connection
drop down list and select local
host. Click Execute
Forward engineering cont.. 26
Select the options shown below in
the wizard that appears. Click next
Forward engineering cont.. 27
The next screen shows the
summary of objects in our EER
diagram.
Keep the selections default and
click Next.
Forward engineering cont.. 28
The window shown below
appears.
This window allows you to preview
the SQL script to create our
database.
We can save the scripts to a *.sql"
file or copy the scripts to the
clipboard.
Click on next button
Forward engineering cont.. 29
The window shown below
appears after successfully creating
the database on the selected
MySQL server instance.
SQL using MySQL Workbench 30
We are now going to use MySQL
workbench to generate the script that
will display all the field names from
our categories table.
1. Right Click on the Categories Table.
Click on "Select Rows - Limit 1000"
2. MySQL workbench will
automatically create a SQL query and
paste in the editor.
3. Query Results will be show
Thank You
31

More Related Content

What's hot (20)

PDF
MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...
Edureka!
 
PPT
Domain Name System
ABDUL GAFOOR K V
 
PPT
Secure Socket Layer
Naveen Kumar
 
PPTX
Relational model
Dabbal Singh Mahara
 
PPTX
Cryptography and network security
patisa
 
PPTX
Internet anonymity and privacy
Dooremoore
 
PDF
Electronic mail security
Dr.Florence Dayana
 
PDF
Asymmetric Cryptography
UTD Computer Security Group
 
PPTX
Key management
Sujata Regoti
 
PPTX
Denormalization
Amna Magzoub
 
PPT
PL/SQL Introduction and Concepts
Bharat Kalia
 
PDF
View & index in SQL
Swapnali Pawar
 
PPTX
Transport Layer Security (TLS)
Arun Shukla
 
PPT
MySQL and its basic commands
Bwsrang Basumatary
 
PPTX
Kerberos
Sutanu Paul
 
PDF
Triggers and active database
BalaMuruganSamuthira
 
PDF
NOSQL- Presentation on NoSQL
Ramakant Soni
 
PPT
IIS
Giritharan V
 
PPT
Domain name service
ishapadhy
 
MySQL Workbench Tutorial | Introduction To MySQL Workbench | MySQL DBA Traini...
Edureka!
 
Domain Name System
ABDUL GAFOOR K V
 
Secure Socket Layer
Naveen Kumar
 
Relational model
Dabbal Singh Mahara
 
Cryptography and network security
patisa
 
Internet anonymity and privacy
Dooremoore
 
Electronic mail security
Dr.Florence Dayana
 
Asymmetric Cryptography
UTD Computer Security Group
 
Key management
Sujata Regoti
 
Denormalization
Amna Magzoub
 
PL/SQL Introduction and Concepts
Bharat Kalia
 
View & index in SQL
Swapnali Pawar
 
Transport Layer Security (TLS)
Arun Shukla
 
MySQL and its basic commands
Bwsrang Basumatary
 
Kerberos
Sutanu Paul
 
Triggers and active database
BalaMuruganSamuthira
 
NOSQL- Presentation on NoSQL
Ramakant Soni
 
Domain name service
ishapadhy
 

Similar to My Sql Work Bench (20)

PPT
Introduction to MySQL - Part 1
webhostingguy
 
PPT
Introduction to MySQL - Part 1
webhostingguy
 
PPT
Introduction to MySQL - Part 1
webhostingguy
 
PPT
Introduction to MySQL - Part 1
webhostingguy
 
PPT
Introduction to MySQL - Part 1
webhostingguy
 
PPTX
Mysql: Tools & Gui
DataminingTools Inc
 
PPTX
MySQL Tools And Gui
mysql content
 
PPTX
Database synchronization prashant parit
PrashantP23
 
PDF
mysql 5.5.25 用户安装备忘
YUCHENG HU
 
PDF
Getting started with my sql
Web Sky
 
DOCX
Lab 2 Work with Dictionary and Create Relational Database (60 pts.docx
DIPESH30
 
PDF
Midwest PHP Presentation - New MSQL Features
Dave Stokes
 
PDF
Database operations
Robert Crane
 
DOCX
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
VinaOconner450
 
PDF
My sql università di enna a.a. 2005-06
YUCHENG HU
 
PPTX
Do More With Less: SQL Central Management Server and Multi-Server Administration
Mike Hillwig
 
DOCX
Sql server configuration manager
ssuser1eca7d
 
PDF
SULTHAN's PHP, MySQL & wordpress
SULTHAN BASHA
 
PDF
Mysql tutorial 5257
Phuong Do Anh
 
PDF
Sql2008 (1)
YanivGupta
 
Introduction to MySQL - Part 1
webhostingguy
 
Introduction to MySQL - Part 1
webhostingguy
 
Introduction to MySQL - Part 1
webhostingguy
 
Introduction to MySQL - Part 1
webhostingguy
 
Introduction to MySQL - Part 1
webhostingguy
 
Mysql: Tools & Gui
DataminingTools Inc
 
MySQL Tools And Gui
mysql content
 
Database synchronization prashant parit
PrashantP23
 
mysql 5.5.25 用户安装备忘
YUCHENG HU
 
Getting started with my sql
Web Sky
 
Lab 2 Work with Dictionary and Create Relational Database (60 pts.docx
DIPESH30
 
Midwest PHP Presentation - New MSQL Features
Dave Stokes
 
Database operations
Robert Crane
 
Lab 2 Work with Dictionary and Create Relational Database (60 pts.).docx
VinaOconner450
 
My sql università di enna a.a. 2005-06
YUCHENG HU
 
Do More With Less: SQL Central Management Server and Multi-Server Administration
Mike Hillwig
 
Sql server configuration manager
ssuser1eca7d
 
SULTHAN's PHP, MySQL & wordpress
SULTHAN BASHA
 
Mysql tutorial 5257
Phuong Do Anh
 
Sql2008 (1)
YanivGupta
 
Ad

More from Lahiru Danushka (7)

PPTX
Liang- Barsky Algorithm, Polygon clipping & pipeline clipping of polygons
Lahiru Danushka
 
PPTX
Virtual Machines - Virtual Box
Lahiru Danushka
 
PPTX
Human Computer Interaction (HCI)
Lahiru Danushka
 
PPTX
Formalization Machines and Sastes
Lahiru Danushka
 
PPTX
Dining Philosopher Problem and Solution
Lahiru Danushka
 
PPTX
Election in Wireless Environment
Lahiru Danushka
 
PPTX
Shuffle exchange networks
Lahiru Danushka
 
Liang- Barsky Algorithm, Polygon clipping & pipeline clipping of polygons
Lahiru Danushka
 
Virtual Machines - Virtual Box
Lahiru Danushka
 
Human Computer Interaction (HCI)
Lahiru Danushka
 
Formalization Machines and Sastes
Lahiru Danushka
 
Dining Philosopher Problem and Solution
Lahiru Danushka
 
Election in Wireless Environment
Lahiru Danushka
 
Shuffle exchange networks
Lahiru Danushka
 
Ad

Recently uploaded (20)

PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PPTX
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
AI Code Generation Risks (Ramkumar Dilli, CIO, Myridius)
Priyanka Aash
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Simple and concise overview about Quantum computing..pptx
mughal641
 

My Sql Work Bench

  • 1. MySQL Work Bench VISUAL DATABASE DESIGNING AND MODELING 1 A G A L Danushka | SEU/IS/14/PS/101
  • 2. Introduction 2 MySQLWorkbench is a Visual database designing and modeling access tool for MySQL server relational database. It facilitates creation of new physical data models and modification of existing MySQL databases with reverse/forward engineering and change management functions.
  • 3. Why we should choose Work Bench?  MySQLworkbench has tools that allow developers and database administrators visually create physical database design models that can be easily translated into MySQL databases using forward engineering.  MySQL workbench supports creation of multiple models in the same environment.  It supports all objects such as tables, views, stored procedures, triggers, etc. that make up a database.  MySQL workbench has a built in model validating utility that reports any issues that might be found to the data modeler.  It also allows for different modeling notations and can be extended by using LUA a scripting language. 3
  • 4. Installation This is a 2 step process 1) Install MySQL Community Server 2) Install MySQL workbench. Note: You will require Administrator or Power User Privileges to perform installation. 4
  • 8. Create MySQL Server Connection 8 Click " + " in MySQL Workbench Home Window. This will open Setup New Connection .
  • 9. Create MySQL Server Connection cnt.. 9 Click Configure Server Management button in Setup New Connection window to check the cofiguration of the MySQL server.
  • 10. Create MySQL Server Connection cnt.. 10 A new window opens named Configure Local Management . Click Next button to continue.
  • 11. Create MySQL Server Connection cnt.. 11 Next it will open a pop up window asking your root password to test your connection with the local mysql server instance. The password is the one you set during installation of MySQL Workbench. Enter your password and press OK
  • 12. Create MySQL Server Connection cnt.. 12 Next the Wizard will test connections to database. If test fails, go back and correct database connection parameters. Else if all tests are sucessful click Next to continue.
  • 13. Create MySQL Server Connection cnt.. 13 After that a new wizard will open about Local Service Management - It lets you switch between multiple mysql severs installed on one machines. As a beginner you can bypass this and click Next to continue.
  • 14. Create MySQL Server Connection cnt.. 14 The Wizard will then check ability to access MySQL Server Configuration File, and test start/stop commands.
  • 15. Create MySQL Server Connection cnt.. 15 Next you can review current configurations. After reviewing the configurations, Click Finish to finsh server cofiguration
  • 16. Create MySQL Server Connection cnt.. 16 Next Step is to setup a connection, which can be used to connect to server. If you have not created a connection already, you can use the default values given. Click on Test Connection [ 2 ] after entering the Connection Name [ 1 ].
  • 17. Create MySQL Server Connection cnt.. 17 A new dialog box will open asking you password to root/selected user. If your MySQL root user has a password, you can enter that using Store in Vault feature. Click OK.
  • 18. Create MySQL Server Connection cnt.. 18 If the entered password for the user is correct then the following screen will show. Click on both OK buttons and you will be good to go
  • 19. ER Modeling 19 In the MySQL workbench , Click - "+" Button Double click on Add Diagram button to open the workspace for ER diagrams.
  • 20. ER Modeling cont.. 20 Let's now create the members table 1.Drag the table object from the tools panel 2.Drop it in the workspace area. An entity named table 1 appears 3.Double click on it. The properties window shown below appears Repeat this for all tables
  • 21. ER Modeling cont.. 21 Lets create relationship between two tables Select the place relationship using existing columns too Click on membership_number in the Members table Click on reference_number in the MovieRentals table
  • 22. ER Modeling cont.. 22 Your ER diagram should now look like this
  • 23. Forward engineering 23 MySQL workbench has utilities that support forward engineering. Forward engineering is a technical term is to describe the process of translating a logical model into a physical implement automatically.
  • 24. Forward engineering cont.. 24 Open the ER model Click on the database menu. Select forward engineer
  • 25. Forward engineering cont.. 25 The next window, allows you to connect to an instance of MySQL server. Click on the stored connection drop down list and select local host. Click Execute
  • 26. Forward engineering cont.. 26 Select the options shown below in the wizard that appears. Click next
  • 27. Forward engineering cont.. 27 The next screen shows the summary of objects in our EER diagram. Keep the selections default and click Next.
  • 28. Forward engineering cont.. 28 The window shown below appears. This window allows you to preview the SQL script to create our database. We can save the scripts to a *.sql" file or copy the scripts to the clipboard. Click on next button
  • 29. Forward engineering cont.. 29 The window shown below appears after successfully creating the database on the selected MySQL server instance.
  • 30. SQL using MySQL Workbench 30 We are now going to use MySQL workbench to generate the script that will display all the field names from our categories table. 1. Right Click on the Categories Table. Click on "Select Rows - Limit 1000" 2. MySQL workbench will automatically create a SQL query and paste in the editor. 3. Query Results will be show