Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. mysql> SELECT USER(),CURRENT_USER();
  2.  
  3. | USER() | CURRENT_USER() | apple@localhost | @localhost |1 row in set (0.00 sec)
  4.  
  5. mysql> SHOW GRANTS FOR 'apple'@'localhost';
  6.  
  7. --------------------
  8. Connection:
  9. Name: LOCAL
  10. Host: localhost (UNIX socket)
  11. Server: MySQL Community Server (GPL)
  12. Version: 5.6.16
  13. Login User: apple
  14. Current User: @localhost
  15.  
  16. Shell> mysql --user=user_name --password=your_password db_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement