1

EVerytime i open my sql workbench, it never restores my workspace ,I always get an error

could not read contents of C/USer...

How can i make this stop?

jarlh
  • 42,561
  • 8
  • 45
  • 63
Subo
  • 27
  • 4

2 Answers2

1

To avoid this in the future, close the workbench then delete all data and directories here:

    C:\Users\your_username\AppData\Roaming\MySQL\Workbench\sql_workspaces
Rute Lemos
  • 191
  • 1
  • 11
0

While the workspace auto restore might not be possible, following are the options to restore your executed queries in MySQL Workbench:

  1. Recovering from HISTORY
  2. Recovering from AUTO SAVE

1 -> HISTORY

All the query execution history of each day is maintained in by the workbench:

Extra details here: https://stackoverflow.com/a/26618099/7397820 enter image description here

2 -> Recovering from AUTOSAVE

C:\Users\DELL\AppData\Roaming\MySQL\Workbench\log\sql_actions_unconnected.log

You can find the list of all executed queries in past and their results in sql_actions_unconnected.log

Example:

enter image description here

*IMPORTANT NOTE!: Don't forget to remove the contents of the following directory:

C:\Users\{{USERNAME*\AppData\Roaming\MySQL\Workbench\sql_workspaces

Deleting this will only help to avoid problems in future not restore the existing workspace according to https://superuser.com/questions/981333/mysql-workbench-unable-to-restore-workspace/1007793#1007793

fatimasajjad
  • 605
  • 8
  • 16