git grep mysql 操作历史

 history |grep mysql-----git  history匹配出mysql操作的命令

 !626
到mysql命令安装处链接mysql
/usr/local/mysql/bin/mysql -uroot -h 123456 -p

  

原文地址:https://www.cnblogs.com/pansidong/p/7834280.html