Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
445 views
in Technique[技术] by (71.8m points)

schema - mySQL - populating the tables in EER diagram and generating .sql file

I'm newer to mySQL and I'm having some difficulty generating a .sql file with insert statements: I have made an EER diagram, forward engineered this diagram to generate the database, then used the insert statement in the terminal to insert values into my tables. Now I'm having difficulty bringing this new/updated database back to mySQL workbench and create a .sql file of the whole thing (schema+ what was inserted into the tables). I had no luck looking here or searching videos on uTube. Any help/links is highly appreciated to show the step by step walk through.

question from:https://stackoverflow.com/questions/66056823/mysql-populating-the-tables-in-eer-diagram-and-generating-sql-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

if you have logged into MySQL workbench then tried going to the schema tab (on the left) and hitting the two arrows that make a circle -- that should populate any tables that you've inserted into terminal. if not you can manually add the script file using one of the button on the top left "open a SQL script file". Check out this tutorial for more info.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...