MySQL Workbench table not refreshing - mysql

I tried in MySQL Workbench to forward engineer a model, and when I did something went wrong with one of my schemas. The schema in the picture has a refresh icon on it, and the tables show it is refreshing but not actually pulling up the tables.
The tables are there and I am able to pull the data, but not sure how to undo this so I can see the tables in the tables tab.
Any idea?

Let me see if I got your actual problem. You triggered a refresh of your schema list and that never finishes. Is that correct? If so then you probably hit a bug. Are you using the latest MySQL Workbench version? Try restarting the application, which should workaround this temporary hickup.

Related

Relationships disappeared - MS Access 2016

I have a split access database that's been in use for almost two years. The database resides on a computer which I access remotely via Remote Utilities, where I transfer the db to my local PC, work on it, then transfer back to the remote machine. We use EaseUS Todo Backups to create an image file every 30 minutes of the database file. I am currently in the process of doing some refactoring and have run into the following issue:
All of the relationships in the database have somehow disappeared. Here is what is strange about this:
About a week prior to discovering this issue I had taken a copy of the database and did not have this issue.
The relationships are gone whether I open it on my local machine or the remote machine.
Upon finding this, the first thing I did was try to restore a backup to see if the relationships were there -- they were not.
This is what I can't figure out -- I had copied the file, everything was OK, then a week later no relationships were found in either the current copy, nor any of the backups from before there was no issue.
I have tried the following to resolve this:
Updating Access on both machines.
Hiding all tables then adding back and showing 'all relationships' in relationships tab.
Looking for relationships in the database documenter.
Restoring old backups as mentioned.
I'm sure this could be a result of corruption -- but how could this corruption extend to the .pbd image files generated by EaseUS, that were created before the issue occurred?
Click the All Relationships button.
Repeatedly click the Hide Table button. Each click hides one table at a time. Continue clicking until the Hide Table button grays out. That will mean that you've hidden every last table.
Click the All Relationships button, again. This will make all of the tables (with their connecting lines intact) reappear in rows of four-each, with all of your tables now visible.

Only one mySQL database loses connection

I am trying to drop one of my databases in mySQL, but I keep getting error 2013: lost connection (this occurs with other queries in this database as well). However, any other database works fine; I can perform queries and delete databases and tables easily.
I've tried googling it, but everything I've seen has essentially said that this lost connection is because of a large or complicated query.
My code is just
DROP DATABASE employees;
However, when I expand that database, it also says Tables/Views/Stored Procedures/Functions cannot be fetched, if that helps (once again, my other databases don't have this problem).
I created this database in Jupyter notebooks using mySQL python connector, and the others I created directly in mySQL, but that is the only real differentiating factor between them.
Ok, I figured it out. Turns out if you're running the code in Jupyter Notebooks and try to perform any actions before closing the cursor, it won't run. (I forgot to run the cell with mycursor.close()). Thanks!

Datagrip local database is stuck in read only

We're 2 people working with Mysql in Datagrip and both of us have the problem that when trying to apply changes to our local database after a simple SELECT statement it's read only: "This view is read-only".
It hasn't been a problem until 2 weeks ago.
In same tab we are able to apply changes to our test and production database.
We've tried everything that's been mentioned in this question:
datagrip Cannot apply changes This table is read only. Cell editor changes cannot be applied
We've also tried to reinstall mysql and datagrip. If we double click any table in the local database we can make changes that way, or through update statements.
Does anyone have any suggestions to what might be the problem? It's getting really painful.

How to display Relation View in MySQL using phpMyAdmin in MAMP

Ok, I've working with my database, and I've got 2 tables and I'm trying to create a foreign link between the two. Apparently this means I need a button called Relation View that is only visible after you set both tables to InnoDB under Operations, which I have done. But Relation View failed to show up, either at the top under the "Structure" tab, or at the bottom next to the "Print" icon where it's supposed to be. So I went here (http://www.w3expert.com/2008/03/how-to-enable-view-feature-in.html) and followed the directions to install the phpmyadmin database, which should have enabled the Relation View, but it didn't. So I'm lost. Am i missing something? Is there another way to get this to work?
To be clear, I'm working through phpMyAdmin through my MAMP server.
Edit - I've also followed the instructions on this website (http://newvibes.com/blog/enabling-relation-view-in-phpmyadmin-mamp/) and edited the server configurations in the mentioned file.
So to recap -
I've created the phpmyadmin database as per the instructions in the 1st link. Then I changed the configurations of the file mention in the 2nd link. Then I closed my phpMyAdmin and restarted my MAMP server. Reopened everything, and I still can't access my Relation View.
2nd Edit - I've been messing with phpMyAdmin, and I've noticed that "Relation View" actually pops up under the database that I imported. But it doesn't show up under any of the other databases. Am I supposed to create my databases in/under the database I imported? If so, how do I do that . . .?
Are you using MyISAM storage engine? phpMyAdmin only shows relational view with InnoDB.
Click on a table, go to Operations at the top and change Storage Engine to InnoDB. I think you can only do this one table at a time
InnoDSB has a lot of overheads for larger databases (so I understand) but should be fine for small/medium stuff.

MySQL workbench does not display the tables

I installed mysql workbench in Windows7 32 bit machine. I imported a dump tables from another machine, the import process completes successfully as mysql shows. But, I can not see the tables, even after refresh all. Not only the tables that I import, even the tables in the test database (that comes by default) or any previously created tables in another database. Simply, it just shows the database name without the plus sign that display the tables. I removed mysql, installed it again, but no hope. I installed the requirements for mysql. What can be the reasons for such problem ?
If you're on mac, your object info and session section is covering the tables view. Just go ahead and drag that down and you should see the tables
I had the same thing happen. I just closed the program, re-opened it, and all the tables I imported were viewable.
Had the same issue, table not showing up under Tables in the navigation sidebar in MySQL Workbench 6.0 even after exiting and relaunching MySQL Workbench. The solution was to right-click on Tables and Refresh All.
I think it is a bug in MySql Workbench.
If you cannot see any updated changes in tables or schemas, then simply close the workbench and reopen it.
If this does not work however, then check your connection and server status.
I assume there is an icon (eye) next to your schema name, if you click on it it will open a window with all hidden tables. Click on show to solve the problem
show hidden table in mysql
Although the question is 8 years old at the time of writing this, I faced the same issue and thought I'd share my solution, which turned out to be rather basic: there's a refresh button to the right of 'Schemas'. If you click this, the newly created tables come into view. You don't have to close and reopen Mysql in such a case.
I had faced the same issue, Decrease the window size of workbench, table will be visible.