MySQL Cluster Configuration in software version Portal can not set up.

Document ID : KB000047215
Last Modified Date : 14/02/2018
Show Technical Document Details

Problem:

In API Portal 3.5 (software)

About“Configure Portal Database Clustering”. 

Run “setup_ndb.sh”. 

 

The following error occurred. 

-------------------------------------------------------------------------------------

Creating tables in lrs database... 

ERROR 1231 (42000) at line 1325: Variable 'sql_mode' can't be set to the value of 'NULL' 

 

Exiting due to an error.[1] 

------------------------------------------------------------------------------------- 

What does this mean? How can it be resolved?

 

 

Cause:

The issue is with the following files.

    /opt/Deployments/lrs/tools/layer7-ndb-support/rs_db.sql

    /opt/Deployments/lrs/tools/layer7-ndb-support/lrsdata_db.sql

The files are  for appliance  but they are not for software.

 

Workaround:  

Please edit the files:

/opt/Deployments/lrs/tools/layer7-ndb-support/rs_db.sql:

 

Add the following to the beginning of the lrs_db.sql.

 

-- MySQL dump 10.13  Distrib 5.5.32, for Linux (x86_64)

--

-- Host: localhost    Database: lrsdata

-- ------------------------------------------------------

-- Server version       5.5.32-enterprise-commercial-advanced-log

 

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;

/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;

/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;

/*!40101 SET NAMES utf8 */;

/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;

/*!40103 SET TIME_ZONE='+00:00' */;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;

/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;

/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

 

 

/opt/Deployments/lrs/tools/layer7-ndb-support/lrsdata_db.sql:

Select "`default_routing_url` varchar(4096) DEFAULT NULL," and edit it.

Before: 

    `default_routing_url` varchar(4096) DEFAULT NULL,

After:

    `default_routing_url` mediumtext DEFAULT NULL,

 

 

Also, recommended minimums for the cluster configuration are:

MaxNoOfOrderedIndexes=512

MaxNoOfAttributes=10000