开发者社区 问答 正文

mysql 登录报错问题?报错

执行:

/data/mysql5/bin/mysql -uroot -h127.0.0.1 -proot!@#12 -e "show slave status \G;"

-bash: !@#12: event not found

直接输入密码不能登录吗,如果不输入密码交互式可以输出的

展开
收起
爱吃鱼的程序员 2020-06-22 22:25:44 555 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    密码加引号试试谢谢加单引号可以<spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14.44444465637207px;line-height:22px;background-color:#F9F9F9;">!@#12改成这样原因你问bash吧谢谢你说的是问题的根源

    2020-06-22 22:26:02
    赞同 展开评论