Login To MySQL without Credentials

In that example we have configured for root user to login to MySQL without Credentials.

[root@ip-172-xx-xx-x ~]# mysql_config_editor set --user=root --login-path=client --password

Enter password:

[root@ip-172-xx-xx-x ~]# mysql

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 15

Server version: 8.0.34 MySQL Community Server - GPL

 

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

 

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> select user();

+----------------+

| user()     |

+----------------+

| root@localhost |

+----------------+

1 row in set (0.00 sec)