Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
dade73
Contributor II
Contributor II

Mysql endpoint session variable

Hi,

is it possible to add/set session variables in a Mysql enpoint connector?

thank you in advance

cheers

davide

Labels (2)
6 Replies
john_wang
Support
Support

Hello @dade73 ,

Thanks for reaching out to Qlik Community!

There are different SET SESSION clauses in MySQL. May we know what's the exact purpose of it? or are you struggling with some errors? A sample is much helpful to understand the request.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
dade73
Contributor II
Contributor II
Author

Hello @john_wang ,

I need to set a user defined variable for the replicate session, to disable some trigger while importing data.

set @TRIGGER_CHECKS=false;

thank you!

Regards

Davide

john_wang
Support
Support

Hello Davide @dade73 ,

Thanks for the update.

Are you able to confirm it's MySQL source endpoint, or MySQL target endpoint?

What's the MySQL Version and Replicate version please.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
dade73
Contributor II
Contributor II
Author

Hello 

is on target endpoint. Im loading on mariadb so i would say mysql 5.7.

Thank you

Regards

Davide

john_wang
Support
Support

Hello @dade73 ,

Thanks for the clarification.

Let's try this way:

1. Open MySQL target endpoint

2. Goto Advanced tab

3. Press "internal parameter"

4. Add an internal parameter, name "additionalConnectionProperties" and set its value to

     initstmt=set @TRIGGER_CHECKS=false;

The screenshot of a sample:

john_wang_0-1690367433205.png

Save the setting and re-run the task again. Let me know if it works for you.

Regards,

John.

 

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
dade73
Contributor II
Contributor II
Author

hi @john_wang 

is working, but sadly in the trigger do not get seen.

I had to find another way.

thank you

regards

Davide