create erd from sql in dbschema - mysql

Can anyone describe how to create an erd from an sql file with DbSchema? I have not found what begins the process.
I also tried using MySQL workbench. Upon choosing the file, a window opens indicating 'Reverse engineering and importing objects from script...', but nothing ever happens; no progress is ever indicated in the message log at the bottom of the window.

I have also used MySQL WorkBench and I loved it. You probably providing something wrong in the Reverse Engineering process. SchemaSPY is a good tool as well. Check this thread too.

Related

DBeaver - missing procedures in MySQL database

I have connected to my work database via DBeaver. Recently colleague told me about a procedure that lets me check newly added entities through our front-end.
And I can't find it in the list of procedures, nor using this query:
SHOW PROCEDURE STATUS WHERE Name LIKE '%name%'
I have the same connection settings as my colleague's, same user, etc, but he uses DbForge and I use DBeaver, cause at some point of time DbForge began having too much restrictions for free version (I wasn't simply able to execute queries), and the older version my colleague gave me didn't install in Windows 11.
So, I'm thinking may be there's some settings in the DBeaver that hide certain stored procedures, or I need to adjust connection settings.
Does anyone has clue on this?
Or may be someone could suggest some alternative to DbForge, which allows to execute queries in the free version and to set colors to connections (I find that thing convenient), and possibly doesn't have this problem, may be because of being more MySQl-oriented.
Thanks in advance!
I've tried to open connection settings and check out the additional parameters there, but can't seem to notice anything relevant.
Ok, seems like there was misunderstanding between me and my colleague, and he actually meant some another DB Server, but with same User/Password combination. Thanks for the comments, that also helped in finding the cause. I really did install MySQL Workbench, saw the same picture in there, and started wondering what else it could be and reading our communication again.
My mistake) The question is no longer actual.

Forward engineer is doing nothing in the MySQL Workbench

I have little experience with MySQL Workbench and need some helps to figure out an issue. I loaded a new EER diagram from a .MWB file in the GUI and was trying to convert it into the SQL with Forward engineer. Initially, I was connected to the localhost and when, I press the Forward engineer..., nothing happens. The figure is as following, I'm working in the Mac OS Sierra operating system.
What I am missing here ? Some advice will help from the more expert users.
I use MySQL Workbench 6.3version for the work,
I've had this same issue with the latest release of MySQL Workbench (macOS). It's definitely some bug as previously, I didn't have any issues forward engineering.
Here's a workaround:
Normally, you'd go to:
Database > Forward Engineer...
To work around this bug, instead go to:
Database > Synchronize Model...
This will look for any open ERDs which do not currently exist with the rest of your schemas, and will allow you to forward engineer the schema that way.
Warning: This could get hairy if you had a lot of ERDs opened and didn't want to synch all of them, so make sure you've got the right ones checked!
I know this is a late answer, but this solution allowed me to forward engineer an ERD which previously was not firing (just as you described, nothing from MySQL Workbench).
I found your post when trying to find a solution, and while troubleshooting, heard via a personal anecdote about this work around. It may already be posted elsewhere on stack (tried to find link but couldn't find it), but hope this helps :)
Try:
File > Export > Forward Engineer SQL CREATE script

How to execute SQL queries inside MySQL workbench

I am developing an application using Django framework. As you may know the workflow is you first describe your objects in Python classes and then you synchronize the database.
I made a MySQL Workbench EER diagram. Since then I continued to develop the application, so the database model is not updated in the EER diagram nor the MySQL Workbench model.
I tried to synchronize it using the built-in feature "Synchronize with Any Source" of MySQL Workbench, but this feature is not working for some reason and causes a segmentation fault. The queries to be executed inside the MySQL Workbench model are displayed but at the last step I get an empty SQL alter script. I tried manually copying the queries in that script and clicking the "Execute" button, but I had no luck with that. I think MySQL stores queries internally. Anyway. I submitted the bug to MySQL Workbench developers here and now it is fixed, but not yet released. I am now looking for a workaround while waiting for the next release.
Although I have a specific problem, the question remains generic.
Is it possible to execute queries on the MySQL Workbench model in order to alter it?
Did you try the "Forward Engineer" option? It allows you to reflect all the changes that were made to your table relations directly to the database which is a pretty useful functionality.
There are some catches though like the inability to maintain existing data every time forward engineering is performed however this can be compensated by entering some example data which will be shipped with the ER diagram the next time you perform "Forward engineer".

Easy ERD Program for MySQL

I need an ERD Program for design my database in MySql.
I tried :
DBDesigner
MySql Workbench
The program should be able to export a sql script
In Oracle i just JDeveloper. It was very easy.
What programs do you prefer?
I personally use MySQL Workbench, or I draw it out by hand. After that it's generally super simple for me to create a database in a matter of minutes (depending on the size).
That said, a simple google search brought me to this page, so the program attached to that website might be worth checking out.

Is there a text based mysql UI?

I don't mean the standard mysql-client CLI, but rather something similar to what midnight commander is to filesystem management. The simple command history of the basic cli is not bad but really doesn't cut it when testing more complex query, and the layout of the data isn't that great. PHPMyAdmin is useful and all, but it's ugly and requires a lot of mouse usage.
OS: linux
dbext.vim provides DB access from within Vi. It provides things like stored connections, schema browsing, command history, some auto completion, and bind variables.
I assume there is something similar for Emacs.
I know this is an old question, but just in case neither of the above solutions have worked for you I would like to recommend Mitzasql - a simple text based Mysql client which gives you a quick read-only access to the database, data manipulation can be done through regular sql queries.
disclaimer - I am the author of said tool.
In emacs, there is a build in mode M-x sql-mysql.
You will be prompted for a user name, password, schema name (or database name), and the server name.
From then on, when one opens a .sql file, emacs should bind that .sql file to the SQL buffer associated with the MySQL session.
Inside that mode you can get help with a "Control-H m" keystroke.
There is a family of emacs sql- modes. They all pretty much work the same.