Hello.
I had the same problem.
I was finally able to fix it, by copying libmysql.dll from the mysql lib folder. In my case, "D:\mysql57\lib", and you need to pay attention to binary versions. OS, .exe and dll must be all 64 or all 32 bit.
I used component 5.7, with dll version 5.7, but my mysql installation is version 8, (xampp) and it's working!