Fix non interactive MySQL connection

Signed-off-by: Flavien Quesnel <flavien.quesnel@irt-systemx.fr>