To grant access to the database for a remote host and address this issue, do the following:
./mysql-client.sh
root
Enter database: [apg]
Enter password:
mysql> show databases;
This command will generate a table similar to the following:
+------------------------------+
| Database |
+------------------------------+
| information_schema |
| apg |
| events |
| master |
| mysql |
| performance_schema |
| topology |
+------------------------------+
7 rows in set (0.00 sec)
mysql> grant all privileges on events.* to 'apg'@'<remote host IP address>' identified by 'watch4net';
mysql> grant all privileges on apg.* to 'apg'@'<remote host IP address>' identified by 'watch4net';
mysql> grant all privileges on master.* to 'apg'@'<remote host IP address>' identified by 'watch4net';
FLUSH PRIVILEGES;
/opt/APG/bin/manage-modules.sh service start event-processing-manager emc-smarts