webyog / sqlyog-community

Webyog provides monitoring and management tools for open source relational databases. We develop easy-to-use MySQL client tools for performance tuning and database management. Webyog's solutions include SQL Diagnostic Manager for MySQL performance optimization and SQLyog for MySQL administration. More than 35,000 companies (including Amazon, IBM, Salesforce, AT&T, eBay, and GE) and 2.5 million users rely on Webyog's solutions to provide valuable insights into their databases. Webyog is an Idera, Inc. company.
https://webyog.com/
GNU General Public License v2.0
2.18k stars 323 forks source link

When "session restore" fails to establish connection .. #2179

Open peterwy opened 6 years ago

peterwy commented 6 years ago

When "session restore" fails to establish connection we will creae a backup ysav. It is possible to extract content (SQL, MXL) from this, but many users are not familiar with SQLite and have problems doing so. And also it takes to much time.

In ticket 92739 an idea came up, that if a connection cannot be restored a connection tab could/should still open named "connection_name - unconnected" or similar.

It may be after the .ysav has been saved, that SQLyog prompts user "do you want to see the saved content of unconnected servers?"

peterwy commented 6 years ago

se also https://github.com/webyog/sqlyog-community/issues/2120

peterwy commented 6 years ago

it is possible to extract content (SQL, MXL) from this

it is possible to extract content (SQL, XML) from this

peterwy commented 6 years ago

.. and quite a lot of menus would then need to "grey out" as will (most) icons for an unconnected session.

peterwy commented 6 years ago

BTW: user also suggested that in an "unconnected sesion" there could be some control "Try to connect again" or similar.

EagleEyeJohn commented 6 years ago

What's important to a user?

The SQL that they've spent time creating and testing.

When restarting an SQLyog session, what does a user expect to see?

All of the connection and query tabs restored, which contain this valuable work.

Current issues

When SQLyog currently restarts a session, any connection that it cannot reestablish is dropped from the session, along with all associated query tabs.

This results on a loss of previous effort, and a loss of state of where within a long process of many steps that you might have been.

What a user most definitely does not want is to be told that if they spend a lot of time picking their way through an SQLlite database they may get back some of what SQLyog has decided they no longer want.

Why?

Because SQLyog cannot connect to display a list of databases.

Does the user care?

NO! So long as they're told that the reason is because of there being no connection.

Consider all of the following

So... please give control to the user, your customer, when dealing with unavailable hosts during session restore.

greentree8 commented 1 year ago

This would be a great feature. Would save me from having to come up with all these kludges to save temporary queries i'm working on.

mclaborn commented 1 year ago

Yes please! I often work in different locations and some of the servers I've connected to are not available. Those don't open and I lose whatever work was there for that server .

LiquidisedFish commented 1 year ago

@peterwy - it is possible to extract content (SQL, MXL) from this Could someone help with extracting queries from the backup ysav session

LiquidisedFish commented 1 year ago

it is possible to extract content (SQL, MXL) from this

it is possible to extract content (SQL, XML) from this

Would you please share the steps in order to get the contents