[root@localhost ~]# mysqld --version
mysqld Ver 5.7.25-28 for Linux on x86_64 (Percona Server (GPL), Release 28, Revision c335905)
[root@localhost ~]# mysql -usbtest -p -h192.168.154.100 -P3306
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 48
Server version: 5.7.25-28 Percona Server (GPL), Release 28, Revision c335905
Copyright (c) 2009-2019 Percona LLC and/or its affiliates
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> \s
--------------
mysql Ver 14.14 Distrib 5.7.25-28, for Linux (x86_64) using 6.2
Connection id: 48
Current database:
Current user: sbtest@192.168.154.100
SSL: Cipher in use is ECDHE-RSA-AES128-GCM-SHA256
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.7.25-28 Percona Server (GPL), Release 28, Revision c335905
Protocol version: 10
Connection: 192.168.154.100 via TCP/IP
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
TCP port: 3306
Uptime: 18 min 40 sec
Threads: 2 Questions: 46 Slow queries: 0 Opens: 115 Flush tables: 1 Open tables: 108 Queries per second avg: 0.041
--------------
mysql> \r
Connection id: 52
Current database: *** NONE ***
mysql> \q
Bye
[root@localhost ~]# tail -f /var/lib/mysql/audit.log