Loading Searchbox
9lessons programming blog logo
Thursday, January 8, 2009

Visual Database Design with MySQL Workbench

6 comments
Few days back I received one request about Mysql WorkBench Usage. So in this post I want to explain with screen shots to create a visual database design, follow these steps.

I prepared this tutorial to improve your Database design Skills in Visual style.

Download Mysql Workbench

For example if we want to project like Twitter web site updating user profile, our database will have these entities:

1 - Users( User_name, password, email, some registration data....)

2 - Updates( Updates/Messages added by the Users)

Step 1 -> Add EER Diagram


Step 2 -> Place a New Table


Ok now... edit the table just right click.


You have to add Column and fix the Data types.


Set the table Primary Key in Column details


Same way you have to create Update table also.

Step 3->Link the both table with Relationship tools


Link the Updates table to Users table automatically generate Foreign key column.


Finally export project SQL script.


We can export ERR Diagram image *.png formate also.

If you feel free post a Comment..

Sponsored Links

Recent Posts

Share this post

Subscribe to my feeds

Subscribe
Comments
6 comments
tiggin said...

nice post

Inflecto Systems [Database Design] said...

I like the look of the software. I will be giving it a blast!

Shantanu Kumar said...

Very useful post. I did bot try MySQL WorkBench in the past but will definitely try out.

Matt said...

I get this below message when i try to import the sql file to my php asmin


SQL query:

CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;

MySQL said: Documentation
#1044 - Access denied for user 'web248-drunk'@'%' to database 'mydb'

Srinivas Tamada said...

Hi Matt,

First you have to create database with the name of 'mydb' then try to import.

Matt said...

MySQL said: Documentation
#1166 - Incorrect column name 'Update_id '


This is now the error message i am receiving sorry to be a pain.

Post a Comment

Orkut | FacebookAbout Me

Subscribe now!Feeds RSS

Subscribe now!Recent Posts

Subscribe now!Categories

Subscribe now!Comments

People Says

@9lessons thank you for the great tutorials, we truly appreciate your contributions to the design community.

Smashing Magazine

Join into my community

Labs ProfileRelease

My ProfileTwitter