Hi @angober,
The sphinx_log table is part of the kaltura_sphinx_log DB, not the kaltura one so:
mysql -h127.0.0.1 -ukaltura -pW9slhg7H3bsh6T4 -P3306 kaltura </opt/kaltura/app/deployment/updates/sql/2017_05_15_add_type_column_sphinx_log.sql
won’t work.
You first need:
echo "GRANT INSERT,UPDATE,DELETE,SELECT,ALTER,DROP,CREATE ON kaltura_sphinx_log.* TO '$DB1_USER'@'%';FLUSH PRIVILEGES;"|mysql -h$DB1_HOST -u $SUPER_USER -p$SUPER_USER_PASSWD -P$DB1_PORT
Then:
mysql -h127.0.0.1 -ukaltura -p -P3306 **kaltura_sphinx_log** </opt/kaltura/app/deployment/updates/sql/2017_05_15_add_type_column_sphinx_log.sql
or just:
echo "ALTER TABLE kaltura_sphinx_log.sphinx_log ADD type INT AFTER created_at;"|mysql -h$DB1_HOST -u $SUPER_USER -p$SUPER_USER_PASSWD -P$DB1_PORT
which is what the postinst script is trying to do. If that fails, please post the error.
Also, I’ve removed the kaltura DB user passwd from your post, please remember to always mask that as this forum is public.
Thanks,