Mysql workbench refresh EER Diagram from server - mysql-workbench

is it possible to refetch or reimport a whole database structure from a server in mysql workbench?
I've tried the synchronize options (both Model and any source), but it always works the other way round (workbench->server) and drops new columns which i've created online / outside of mysql workbench..
i'm using the latest version 5.2.41.
Thanks for any help

Use the latest version 5.2.42 and do a "Database > Synchronize with Any Source" because it appears that you are still experiencing this bug
http://bugs.mysql.com/bug.php?id=61211

At the step "Select changes to Apply", default it "Update source" (you see the arrow from Left->Right). In your case, you should select the tables and click "Update Model", it will sync from Mysql to Model.

Related

How to install DBeaver's sample database?

How do I get DBeaver to create its sample database after declining its first offer (without re-installing or deleting %APPDATA%\DBeaverData\workspace6) ?
Example screenshots:
You can update your DBeaver version. You can find the "Create Sample Database" under the "Help" button. (Image from DBeaver 21.3.0, will be released soon).
Or you can just specify the way to the sample database directly in the new SQLite connection. Usually, you can find Chinook.db in the %APPDATA%\DBeaverData\workspace6. For me it was "workspace6.metadata.metadata\sample-database-sqlite-1" path.

Is it possible to keep a Postgres database schema under source control using DataGrip?

With Microsoft SQL Server, there is a great schema comparison tool which lets you keep a database schema under source control and push changes in both directions (schema project to database and database to schema project) which can then be kept under source control. This made development very easy directly on the local database, push the changes to the source controlled project and then apply the changes to other environments when required by using the schema comparison tool to generate the updates from the diff.
Is there any way to do something similar to this with DataGrip for PostgreSQL?
Including how to keep a database as schema files.
I've seen that there is VCS integration but I can't get it to generate a project from a database and Google doesn't seem to help.
Any help would be greatly appreciated.
Thanks, James
There is no full integration for now. This is the ticket to follow: https://youtrack.jetbrains.com/issue/DBE-3852
But you can now already generate you file-project for your database.
Select schema in the database explorer
Context menu -> SQL scripts -> SQL Generator
Choose the tab with the diskette, select options
Press Save.

DBeaver Can't access non-default database

I'm using DBeaver 3.8.0 and trying to setup general connection to my local PostgreSQL database.
To view all the databases i have, I check the "Show non-default databases" checkbox. And when I try to access Schemas of one of my databases - I'm getting the error
org.jkiss.dbeaver.DBException: Can't access non-default database
Try to set your database active which you choose to open the schema:
Right-click on the Db Connection in the database navigator (right-click on PostgreSQL)
Click on edit connection
Select PostgreSQL tab
Select Show all databases
Click ok to save
Note: I am using DBeaver Enterprise 7.0.0
For more recent versions of DBeaver, you can improve this confusing default behavior.
You need to change an "Editors" setting. There are several ways to get to the setting, an easy way is:
[Postgres - #name#] right-click > Properties
Under Editors, check the auto-sync box:
After that, any time you click on a database in the right-hand navigator, it will automatically be set as the active database, so things should just work.
These types of pain points are enough to drive you away from new tools, this one in particular. Hang in there!

typo3 4.7 recreate database

Is it possible to recreate the database from scratch on a typo3 4.7.10?
After a migration the database got lost and only the files are available. My job now is to create a new database for it.
Do I have to install a typo3 4.7 and then use this database or is it somehow possible to recreate the database with the current installation?
You can create an empty db via phpMyAdmin, for example.
Then go to Install Tool -> Basic Configuration and enter your db credentials there. After that you can switch to DB analyzer and click on "Compare" button.
TYPO3 will then prompt all the SQL queries it will perform, which in your case will be "CREATE TABLE ...". Just agree with that and your empty TYPO3 db will be created.

Update Target Button is disabled in Sql Server Database Schema Comparison

I use Visual Studio 2013 Professional Update 4 in combination with multiple SQL Server 2012 Enterprise servers/instances. The Idea was to create a Version controlled deployment using a Visual Studio Solution with SQL Server Projects.
However for some reason the "Update Target" and "Generate Script" button is disabled.
I can update the local database project from the sql server database but the other way around is not working. (see screenshot)
Google is not helpful at all although I found a few people with a similar problem.
Update target button is disabled after schema comparison
VS2012: Schema compare, update button disabled
VS2012 Schema compare buttons disabled
But none of this questions/blogposts is about Visual Studio 2013 and in addition none of the proposed solutions is working for me.
Question: Why is the Update Target button disabled and what do I have to change to fix this?
Note: Of course, I'm using the latest version of SQL Server Data Tools(12.0.50318.0)
This was driving me nuts, as well. I finally noticed a "warning" message stating "Cannot generate deployment plan due to an internal error". Because of this, the Update and Generate Script buttons were both disabled.
I resolved this by closing Visual Studio, navigating to the folder containing the Database project and removing all (*.dbmdl) files. I then restarted Visual Studio, re-ran the compare schema and the Update button was enabled.
The tip that helped me was to look at the error list. (View Menu, Error List). Once I cleared the errors (just the errors, the ones with the red X) I was able to compare the schema again and the Update and Generate Scripts buttons were both enabled.
Beside the generate script, click on OPTIONS and select only the objects for which you want to compare.
This and ONLY this worked for me.