High Availability Installation / Configuring MySQL and Aspera Services for High Availability |
You must access the MySQL database to grant access privileges for the user root. This requires accessing the database on the node that you selected as the primary node with the MySQL root password and then granting privileges for the user root from either Orchestrator server.
root@10.0.143.100]# cat /opt/aspera/common/mysql/database.rb.yml [client] user = root password = RAAp2jRGIdfUoTBL3ttr host = localhost port = 4406
[root@10.0.143.100]# /opt/aspera/common/mysql/bin/mysql –uroot –hlocalhost –pRAAp2jRGIdfUoTBL3ttr
Welcome to the MySQL monitor. Commands end with ; or \g Your MySQL connection id is 45 Server version: 5.1.67 Source distribution … Type ‘help ;’ or’\h’ for help. Type \\c’ to clear the current input statement. [(none)] mysql>
mysql> grant all privileges on *.* to 'root'@'10.0.115.100' identified by ‘aspera' ; Query OK, 0 rows affected (0.00 sec) mysql> grant all privileges on *.* to 'root'@'10.0.115.101' identified by ‘aspera' ; Query OK, 0 rows affected (0.00 sec)
[root@10.0.143.100]# cd /opt/aspera/common/mysql/bin/ [root@10.0.143.100]# ./mysql –uroot –h10.0.115.100 –paspera
If you are able to access the MySQL environment, the changes were successfully implemented. If you do not see the message, Welcome to the MySQL monitor (as shown in Step 2), re-run the mysql> grant all privileges statements—as shown in Step 3—with the root account.