MySql store the history of command or queries in .mysql_history file in the user directory, suppose you want to see the history of commands or SQL queries which <username> has executed we can either login to that user or from another user we can type:
cat ~/.mysql_history
Suppose current user is logged in as root or any user if it has Sudo permission then we can give command
cat /home/username/.mysql_history
cat ~/.mysql_history
Suppose current user is logged in as root or any user if it has Sudo permission then we can give command
cat /home/username/.mysql_history
No comments:
Post a Comment
Thank you for Commenting Will reply soon ......