Advertisement
thantzinz

Untitled

Sep 3rd, 2023 (edited)
1,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.67 KB | None | 0 0
  1. # https://cloud.google.com/compute/docs/instances/sql-server/setup-mysql#ubuntu
  2.  
  3. ALTER USER 'root'@'localhost' IDENTIFIED BY 'rootPass';
  4. # the following command shows the threads running, including the current connection.
  5. SHOW processlist;
  6. # to generate a list of users.
  7. SELECT User, Host, authentication_string FROM mysql.user;
  8. SELECT host, user FROM mysql.user WHERE user LIKE '%%';
  9. SELECT host, user FROM mysql.user WHERE user LIKE '%roo%';
  10.  
  11. show status like 'wsr%';
  12.  
  13. # https://dev.mysql.com/doc/refman/8.0/en/creating-accounts.html
  14. # https://dev.mysql.com/doc/refman/8.0/en/socket-pluggable-authentication.html
  15. # https://dev.mysql.com/doc/refman/8.0/en/alter-user.html
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement