Reputation: 306
I am trying to restore an unsaved DBeaver script. I opened my DBeaver again after my system got shut down abruptly and I can't find anything. All my SQL script are gone.
Upvotes: 13
Views: 37708
Reputation: 411
You can find all your project scripts in DBeaver in the "Projects" tab in the "Scripts" folder.
Or try to check this path manually:
AppData\Roaming\DBeaverData\workspaceName\General(Project Name)\Scripts
Some variables must be changed in this path.
Upvotes: 16
Reputation: 21
This is an old ask but if you ran the query prior to dbeaver shutting down or you exiting it out you can go to Windows -> Views -> query manager and the query should be there
Upvotes: 1
Reputation: 20931
You can find it in C:\Users\[your_user_name_enter_here]\AppData\Roaming\DBeaverData\workspace6\General\Scripts
if the path yields an error, you can go on from C:\Users\[your_user_name_enter_here]\AppData\Roaming\DBeaverData
. Otherwise, you can follow the same way as seen below image.
Upvotes: 4
Reputation: 9630
If you installed DBeaver with snap on Linux, check
~/snap/dbeaver-ce/198/.local/share/DBeaverData/workspace6/General/Scripts
(change the number 198 or workspace6 to what you have)
Mind that the .local is a hidden folder, you need to show hidden files if you just click there.
Then check whether you find some temporary files in there.
Upvotes: 6
Reputation: 21
I have deleted a script by accident in DBeaver. I've pressed Ctrl+Z on the left panel and the script appeared, but corrupted. So rigth click > Compare with > Local history Then I could see previous versions. Hope this helps anyone. LOL Steps
Upvotes: 2
Reputation: 123
Since your scripts weren't saved on the disc, they are gone. Unfortunately, there is nothing you can do.
Upvotes: 2