MySQL Workbench: how do I set up “ON UPDATE” and CURRENT_TIMESTAMP?

I am using MySQL Workbench 5.2.35. Open create/alter table panel, switch to the columns tab, right click on the timestamp field; there you can see possible default and on update options. Important note: You can use CURRENT_TIMESTAMP as default or updated value for only a single column in a table! Regarding the UTC question, you … Read more

How to unblock with mysqladmin flush hosts

mysqladmin is not a SQL statement. It’s a little helper utility program you’ll find on your MySQL server… and “flush-hosts” is one of the things it can do. (“status” and “shutdown” are a couple of other things that come to mind). You type that command from a shell prompt. Alternately, from your query browser (such … Read more

MySql workbench query history ( last executed query / queries ) i.e. create / alter table, select, insert update queries

From the bottom panel, change “Action Output” to “History” and then choose the appropriate date. Alternatively, the SQL statement history is stored in text files under two locations: sql_history/yyyy-mm-dd e.g., sql_history/2015-04-01: Full Workbench SQL history for all MySQL connections log/sql_actions_.log*: SQL history execution results, but without the data, and separated per MySQL connection The location … Read more