MySQL Databases

From Run Your Own
Revision as of 14:12, 24 February 2019 by 320x200 (talk | contribs) (Created page with "Some MySQL handy oneliners: * List all users from running instance: SELECT User, Host, Password FROM mysql.user; * Create new user called <code>newuser</code> CREATE USER n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Some MySQL handy oneliners:

  • List all users from running instance:
SELECT User, Host, Password FROM mysql.user;
  • Create new user called newuser
CREATE USER newuser@localhost IDENTIFIED BY 'superstrongpassword';