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

Cannot connect to Database server (mysql workbench)

The issue is likely due to socket authentication being enabled for the root user by default when no password is set, during the upgrade to ubuntu 16.04. The solution is to revert back to native password authentication. You can do this by logging in to MySQL using socket authentication by doing: Once logged in: which …

Read more

Create a new database with MySQL Workbench

Launch MySQL Workbench. On the left pane of the welcome window, choose a database to connect to under “Open Connection to Start Querying”. The query window will open. On its left pane, there is a section titled “Object Browser”, which shows the list of databases. (Side note: The terms “schema” and “database” are synonymous in …

Read more