Hi,
I set mention PRIVILEGES for gateway user ,tried to connect database with following command and able to connect.
[root@xxxx]# mysql -ugateway -p -h ***.xx.xx.xxxxx.xx
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1710709
Server version: 5.7.24-log MySQL Community Server (GPL)
Copyright (c) 2000, 2018, 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>
Still getting below exception when executed audit purge script,
[root@xxxxxxxx]# ./audit_purge.sh
==> Error querying database
Message: mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'gateway'@'******.xx.xx.xxxx.xx' (using password: YES)
Refer to http://dev.mysql.com/doc/refman/5.1/en/error-messages-client.html
for more information.
Kindly do needful.
Regards,
Radha