Description:
This knowledge document explains about the steps how to change the MySQL database 'sa' user and 'root' user passwords.
Solution:
Description:
This knowledge document explains about the steps how to change the MySQL database 'sa' user and 'root' user passwords.
Solution:
- On the CA Business Intelligence (CABI) server, stop the Tomcat service and the CABI SIA service via the Central Configuration Manager (CCM). After that, stop the MySQL Service via the Windows Control Panel (Control Panel -> Services -> BOE120MySQL service)
- Open the command prompt. Change to the <MySQL Installed folder>\bin directory. By default this is located at C:\Program Files (x86)\CA\SC\CommonReporting3\MySQL5\bin
- Run the following command
mysqld-nt.exe --skip-grant-tables
After executing the command, the prompt will not be returned. It is possible to check whether the mysqld-nt.exe is running or not via the Process tab within Windows Task Manager.
<Please see attached file for image>

- Open another command prompt and change to the <MySQL Installed folder>\bin directory. By default this is located at C:\Program Files (x86)\CA\SC\CommonReporting3\MySQL5\bin
- Run "mysql.exe".
- The command prompt "mysql" will be returned without demanding a password as follows
<Please see attached file for image>

- Run the following command
UPDATE mysql.user SET Password=PASSWORD('newpasswordhere') WHERE User='root';
FLUSH PRIVILEGES;
In this example, the password of the MySQL root user is being set to "newpasswordhere1" and the password of the MySQL sa user password is being set to "newpasswordhere2".
<Please see attached file for image>

After completing the command, type "quit" to logout of the MySQL.
- Kill any existing "mysqld-nt.exe" processes via the Process tab within Windows Task Manager.
- Restart the MySQL Service stopped in step #1 via the Windows Control Panel.
NOTE: It is necessary to follow the below steps when the password of the MySQL sa user has changed. If the password of the MySQL root user changed but not the MySQL sa user, it is NOT necessary to follow the following steps.
Change the Settings of the CABI CMS System Database
- Via the Windows ODBC Control Panel, check the MySQL connection after changing the password of the MySQL sa user
<Please see attached file for image>

<Please see attached file for image>

- Open the properties of the "Server Intelligence Agent(SIA) service from the CCM.
- Click the Configuration tab.
- If any message boxes similar to "Failed to Retrieve cluster name from Database" appears, click OK.
- Click the "Specify..." button on the CMS System Database Configuration section.
<Please see attached file for image>

- Select 'Update Data Source Settings' and click OK.
<Please see attached file for image>

- Select 'MySQL driver' and click OK.
<Please see attached file for image>

- Input the information for the MySQL database and input the new password of the MySQL sa user.
<Please see attached file for image>

- Return to the properties dialog and click OK.
- Restart the MySQL Service via the Windows Control Panel. In addition, restart the CABI Tomcat service and the SIA service via the CCM.