Mysqlslap tool causes: Error 2058: This handle is already connected

Mysqlslap tool causes: Error 2058: This handle is already connected.

OK I got this working by trial and error with the available options. I had to remove ‘–login-path’ and use ‘–no-defaults’ in it’s place. I then have to supply user and password info in my script, so I get a warning about that being possibly insecure, but looks like it’s my only choice. No idea why this is the case with my setup, but am just happy it’s working.