# 第一次可以登录[root@mysql ~]# mysql --login-path=wing3306Welcome tothe MySQL monitor. Commands endwith ; or \g.Your MySQL connection idis26Server version: 5.6.26-log MySQL Community Server (GPL)Copyright (c) 2000, 2015, Oracle and/orits affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/oritsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.wing@127.0.0.1 : (none) 04:04:04> \qBye# 将指定的login path删除,同样的方式将无法登陆[root@mysql ~]# mysql_config_editor remove --login-path=wing3306[root@mysql ~]# mysql --login-path=wing3306ERROR 2002 (HY000): Can't connect tolocal MySQL server through socket '/var/lib/mysql/mysql.sock' (111)[root@mysql ~]# mysql_config_editor print --login-path=wing3306