Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

From where the Mysql history is coming in Workbench?

Tags:

mysql

i have observed that workbench has an option called history, which is giving all my db operations in day wise, i want to know from where it is getting, i mean is mysql is maintaining any table internally. I need to update the databse everyday to my client so it will be useful to me, Please help

like image 270
ramsbh Avatar asked Dec 12 '22 16:12

ramsbh


2 Answers

If anyone still needs this the history is stored (at least in Windows 7) in UserFolder\AppData\Roaming\MySQL\Workbench\sql_history in separate XML files for each day.

like image 194
Ashley Cretney Avatar answered Jan 05 '23 08:01

Ashley Cretney


For mac users, you can find the history files at

/Users/<username>/Library/Application Support/MySQL/Workbench/sql_history

Though the history file stored there only has some dates in it(Seems like Workbench is using it for some indexing.... not sure though). If you need actual history with queries you can check the log files at

/Users/<username>/Library/Application Support/MySQL/Workbench/log/
like image 21
maneet Avatar answered Jan 05 '23 08:01

maneet