当前位置: 移动技术网 > IT编程>数据库>Mysql > -bash: !: event not found

-bash: !: event not found

2020年07月26日  | 移动技术网IT编程  | 我要评论
[root@MGR-node3 ~]# mysql -uroot -p"Eb>wk?r+*8!<"
-bash: !: event not found

需要吧!转义不能用!

[root@MGR-node2 ~]# mysql -uroot -p"Eb>wk?r+*8\!<"
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.30-log

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> set password=password("Mahaohao@123");
Query OK, 0 rows affected, 1 warning (0.00 sec)

本文地址:https://blog.csdn.net/estarhao/article/details/107576543

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网