欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

-bash: !: event not found

程序员文章站 2022-03-26 14:42:42
[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 mon...
[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