Skip to content

Instantly share code, notes, and snippets.

/b

Created October 20, 2016 19:59
Show Gist options
  • Save anonymous/c660ffaf2ece0b4ad2c1457fd1fd9be8 to your computer and use it in GitHub Desktop.
Save anonymous/c660ffaf2ece0b4ad2c1457fd1fd9be8 to your computer and use it in GitHub Desktop.
mysql> SELECT User, Host FROM mysql.user;
+------------------+-----------+
| User | Host |
+------------------+-----------+
| debian-sys-maint | localhost |
| mysql.sys | localhost |
| root | localhost |
+------------------+-----------+
3 rows in set (0.00 sec)
mysql> show grants;
+---------------------------------------------------------------------+
| Grants for root@localhost |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
| GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+
2 rows in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment