MySQL - Cannot create ERD in Server Instance Schemas - mysql

I am brand new to MySQL and I am trying to understand how it all fits together. I have a very strong understanding of Microsoft Access, but this is a whole new world.
I create a schema (MySQL Model) and I had no problem creating an ERD. I then figured out how to Reverse Engineer it and add it to the local instance of my server which is Local Instance MySQL56.
But I cannot find the ERD on the local server. I then added more tables on the server, but I want to add the tables to the ERD so that I can relate the tables. But I cannot find any option to add or edit an ERD.
Am I missing something? How do I relate the tables without an ERD?
Thanks,
David

#PM 77-1, thanks for your responses. I am using Workbench for MySQL, which is a GUI.
I did discover the answer to my question by experimenting more with the tool.
While viewing the MySQL Server Instance, select the database that you are working on.
Select the Database Menu and Reverse Engineer...
For me, I just accepted all of the default options as I stepped through the wizard.
Then once I finish making all of the changes, reverse the process by doing a Forward Engineer.

Related

MySQL Workbench Visualising techniques

I wonder if there is a better way to visualize table using mysql workbench for a single entity along with its related tables. Is there a better way to visualize table in a diagram instead of table definition.
You can use the Reverse Engineer option on Modeling context of Workbench. Here is it how:
On Workbench, go to File > New Model
On the new Model window, choose Database > Reverse Engineer
Follow the wizard to connect to the schema and Workbench will get you the Model Diagram
Hello_
You can make EER Diagrams with MySQL Workbench.
Refer to the official documentation, watch video in youtube here, here or here or even search google
You can start making such a diagram from home screen - for new database or from existing one.
Cheers!

Forward Engineer not creating tables from Model in MySQL Workbench

I am completely confused by the way Workbench works. Here are the steps I take, but I don't know where my mistake is.
I created a localhost connection.
Created a Model.
Created a database in the local connection.
Forward Engineered the Model into the local connection.
Tables from the Model are not in the database???
Can someone help me with this dark magic? I am a beginner and the process is very confusing.
I figured it out.
My mistake was that I forgot to give the model a name, and the forward engineering created it with a default one.
Also, I tried creating the database manually (with one name) which is redundant since the database was created already (with another).
The steps would be:
Create a localhost connection.
Create a Model AND name it.
Forward Engineer the Model into the local connection.

MySQL Workbench equivalent for SQL Server

I'm new at SQL Server and I've been looking for an official database modeling tool (if there is one in existence) so that I can design EER Diagram and export it as an actual database.
So far I have only found tutorials on creating a table for a model, similar to this one: http://www.asp.net/mvc/overview/getting-started/introduction/creating-a-connection-string; but since my EER contains relationships between models, I need to design the diagram.
Thanks in advance.
forget this my last information. ER Master is nice, but it isnt the answer you want.
Yes, you can do it with MS SQL Server Mangament Studio. Under the root node of datebase exists one entry "Database diagramm". If you will open this. You can choose, which Tabels you want to see in E/R Diagramm view.
Try this,
http://ermaster.sourceforge.net/
its a nice plugin for eclipse.

Creating a database with MySQL Workbench from existing schema/model

I built a database schema (or Model?) with MySQL Workbench. I'd like to now make it into an actual database.
I've seen Forward and Reverse engineer options and can't find a clear answer on if either are what I need.
How can I turn this into an actual database?
This for mysql workbench version 6.0 and for exporting a schema.
Select tab MySQL Model
Select File->Export->Forward Engineer SQL Create
Place a file name to be exported in the Output SQL Script File, choose your options, next
Export MySQL table Objects,
filter tables
Then a file is created which you can import to your database and it creates schemas if not exists, creates tables if not exists.
In the case of models, you need to pay, many bucks, for a tool that creates schemas, tables, indexes, cascading, and all stuff associated to an existing data model.
In order to realize a modeled schema structure on a real server you would use either forward engineering or synchronization. The first is if you have just the model and want it to create all the objects in the target schema(s). Synchronization on the other hand is a means to synchronize your model and an existing schema (two-way). That is, objects not existing or changed in your model are created or adjusted on the server and vice versa. There's no need to create a separate SQL script and apply that manually.
For both action see the Database menue in MySQL Workbench when a model is open.
The official documentation has a relevant article. http://dev.mysql.com/doc/workbench/en/wb-getting-started-tutorial-creating-a-model.html
Jump to step 11.
As of MySQL Workbench 8.0, go to the menu item Database > Forward Engineer. After specifying your database connection and model export options, you’ll be able to create the database you have designed.
See MySQL Workbench Manual :: 9.4.1.2 Forward Engineering to a Live Server for details.

Synchronize 2 database in django

I have 2 different server running django in it. (using postgre)
Both has the same user table.
I wanted to synchronize the user table, as if I update or delete user in one server then the 2 db should also get updated.
I guess replication is not a solution for my case.
Can anyone point me in right directions. or any link or reference will be helpful.
Both server are running different django code.
Thanks,
I don't know how to do this in PostgreSQL, but in MySQL you could create database VIEW pointing to a table in another database. This way you could reuse the existing auth_user table in the other sever.
I would take a look at pgpool-II. I haven't used it myself, but it's been recommended to me for similar purposes and after a bit of research I came to the conclusion that it's one of the better projects out there.