On a work project, I'm load-testing a php service on MySQL 5.6 loaded on a beefy Google Compute Engine VM. After I exceed a certain amount of requests per second in my load test, MySQL starts giving me errors like:

mysqli::real_connect(): (HY000/2002): Invalid argument in

I've confirmed that we're passing the same arguments to mysqli real_connect both before and after those warnings start where the connection fails.

On the VM - memory & cpu have very low usage, we're not hitting limits in write iOPS ( our loadtest is write heavy ) and none of the charts on PMM are revealing anything that's going wrong at that time.

Any ideas why this might be happening?

  • Let's see the arguments. Or let's see a code snippet that includes the connect. – Rick James Feb 9 at 3:49
  • This question should ideally be asked on stackoverflow.com, this question is not totally databases related. – Raymond Nijland Feb 9 at 14:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.