Grant Access to the EUM Server MySQL Database
The Synthetic Server installer modifies the EUM MySQL database schema and the Synthetic Server stores data in the EUM MySQL database. Thus, you will need to grant MySQL users from the machine hosting the Synthetic Server privilege to the EUM Server's MySQL database.
- Log on to the machine where the EUM MySQL database is located.
- Connect to the MySQL Server with the EUM Server database. For example, if you are using the default EUM MySQL database, do the following:
- Change to
<installDir>/AppDynamics/EUM
. - Connect to the EUM MySQL database:
mysql/bin/mysql -u root -h <eum_server_hostname> -S <eum_server_mysql_sock> -P <eum_server_mysql_port> -p
- Change to
- From the MySQL monitor, grant privileges to the MySQL user
root
of the Synthetic Server machine. The installer will use the MySQL userroot
to update the EUM database schema. Be sure to replace<on-prem-synthetic_server_hostname>
with the URL to your Synthetic Server.- MySQL 8.x
-
mysql> CREATE USER 'root'@'<on-prem_synthetic_server_hostname>' IDENTIFIED BY '<db-root-password>'; mysql> GRANT ALL PRIVILEGES ON eum_db.* TO 'root'@'<on-prem_synthetic_server_hostname>';
- MySQL 5.x
-
mysql> GRANT ALL PRIVILEGES ON eum_db.* TO 'root'@'<on-prem_synthetic_server_hostname>' IDENTIFIED BY '<db-root-password>';
Note: The MySQLroot
user from the Synthetic Server is not related to the Linux user account that is installing the Synthetic Server. For example, the Linux user accountubuntu
can run the installer, but the installer will use the MySQL userroot
when connecting to the EUM Server MySQL database to update the database schema. - You will also need to grant access to the MySQL user
eum_user
to write data to the EUM database (eum_db
). Be sure to replace<on-prem-synthetic_server_hostname>
with the URL to your Synthetic Server.- MySQL 8.x
-
mysql> CREATE USER 'eum_user'@'<on-prem-synthetic_server_hostname>' IDENTIFIED BY '<db_eum_user_password>'; mysql> GRANT ALL PRIVILEGES ON eum_db.* TO 'eum_user'@'<on-prem-synthetic_server_hostname>';
- MySQL 5.x
-
mysql> GRANT ALL PRIVILEGES ON eum_db.* TO 'eum_user'@'<on-prem_synthetic_server_hostname>' IDENTIFIED BY '<db_eum_user_password>';
- Set the password for the MySQL user
root.
The password should be the same as the one specified by thedb_root_pwd
in theinputs.groovy
file.- MySQL 8.x
-
mysql> ALTER USER 'root'@'<on-prem-synthetic_server_hostname>' IDENTIFIED WITH 'caching_sha2_password' BY '<db-root-password>';
- MySQL 5.x
-
mysql> SET PASSWORD FOR 'root'@'<on-prem-synthetic_server_hostname>' = PASSWORD('<db-root-password>');
- Confirm that you have granted permission for
eum_user
androot
:show grants for eum_user@<on-prem_synthetic_server_hostname>; show grants for root@<on-prem_synthetic_server_hostname>;