How to display Relation View in MySQL using phpMyAdmin in MAMP - mysql

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.

Related

Working with multi-tenancy/multi db in laravel

I'm working for the first time on a multitenacy application with multidatabase for each tenant made with laravel using the Tenancy for Laravel Saas - Boilerplate .
Being the first time for me working on such kind of application, I've read the whole well done documentation that they have but unfortunately I'm still really confused about one thing.
I use TablePlus to check my db records but on table plus, I can only see the Central DB not the tenant's database.
My question is, how can i check all the databases created for each tenant?
The above package is generating for each tenant a db named tenantid************************, how can i see what I'm writing into this db??
Hope somebody can help me to clear this doubt.
Thank you very much.
For multiple databases in table plus, you can open other databases for the current connection. In the UI top bar there is button left to the "sql" button. Alt. go to Connection/Open a database (Shortcut on mac "command + K")

How to bring back PHPMyAdmin Functions View in the DB left-pane

Recently, the left-pane DB preview in PHPMyAdmin lost the Functions folder. Already struggling the entire day to search a solution, but I cannot find anything similar to this problem. Together with this problem, I notice that when I hit the Structure view of a table it doesnt load anymore the table structure, but via MySQL command line though I can see everything.
Following various other topics on other phpMyAdmin left-pane view problems, I have verified that my user has ALL privileges.
Restarting MySQL (MariaDB actually) causes no change in the above results
I expect as so far the left-pane to show me the Functions folder as well as showing me the tables structure
I have just found the solution after 1 day of searches: this one worked perfectly MySQL Error 1 (HY000) Trouble creating file Errcode 2

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.

MySQL Workbench table not refreshing

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.

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.