I have the same error (solved)
DW 2019 + mysqli sb W10 Xamp and Mysql community server 5.7.22
With dynamic connection or mysqli SB I get the error. (mysql server and other mysqli connection work well with other software). Please help
SOLVED
in my case the error was due a configuration error for the local testing server