Skip to content

Instantly share code, notes, and snippets.

-- Abstract: if there's ''@'localhost' user, can login with any username without password,
-- and any users @'%' will be ignored on login.
-------[Root connection]-------
-- All mysql installations I've seen so far have ''@'localhost' user record.
mysql> select host, user from mysql.user;
+-----------+--------+
| host | user |
+-----------+--------+