Hello @santhu4399,
The command the kaltura-base-config.sh is running is this:
$ echo "select version();" | mysql -h$DB1_HOST -u$SUPER_USER -p$SUPER_USER_PASSWD -P$DB1_PORT -N
Obviously, you inputted the wrong params when prompted for the MySQL host, super user and passwd.
First make sure this works from the shell, then run the script again.
As the howto states, you should run mysql_secure_installation
before running the Kaltura config scripts.
Make sure your MySQL is actually running and is listening on whatever port you input when prompted by the script. The default port is 3306.