Modify the Controller Database
MYSQL versions <=5.7 have the Compact Row_Format. Therefore, you must modify the Controller database tables to change the Row_format to Dynamic before upgrading MYSQL to 8.0 version.
Complete the following steps to modify the database table:
-
Stop the Controller application server.
cd ~<controller_home>/bin/ ./controller.sh stop-appserver -
Run the following commands to create the SQL file that has
ALTERcommands.-
Navigate to the database
bindirectory.cd ~<controller_home>/db/bin/ -
Createthe the
Alter.sqlfile../mysql -N -uroot -p<database_root_user_password> --socket=~<MySql_Socket_Path> -e'SELECT CONCAT("ALTER TABLE ", tables.TABLE_SCHEMA, ".", tables.TABLE_NAME, " ROW_FORMAT=DYNAMIC;") FROM (SELECT TABLE_SCHEMA, TABLE_NAME, ROW_FORMAT FROM information_schema.TABLES WHERE ROW_FORMAT = "Compact") tables;' > Alter.sqlNote: To fetch the MYSQL socket path, run this command:~<MySql_Socket_Path> can be fetch from o/p of command -> ps -ef | grep mysqld
-
-
Log in to the Controller database to run the
ALTERcommands.cd ~<controller-home>/bin/ ./controller.sh login-db source Alter.sql -
Verify that the tables have
DynamicsRow_format.
If the output isSELECT TABLE_SCHEMA, TABLE_NAME, ROW_FORMAT FROM information_schema.TABLES WHERE ROW_FORMAT = 'Compact';NULL, the table has noCompact Row_Format.