Вопрос

I am using tank_auth library for authentication in Codeigniter. I want to draw ER-diagram for tank_auth sql file.

When I imported sql file (reverse engineering) in mysql workbench it shows all table without any relationship between tables (users, user_profiles, user_autologin, login_attempts, ci_sessions ).

how could I get Er-diagram from given sql file ?

Это было полезно?

Решение

MySQL Workbench derives relationships in diagrams from existing foreign keys. If your tables use engines that don't support foreign keys no relationships can be derived automatically.

Другие советы

  • Go to to "Database" Menu option
  • Select the "Reverse Engineer" option.
  • A wizard will be open and it will ask for db configuration/source
  • On finish it will generate the ER Diagram for you
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top