Using the solution of mysqli driver + sockets (#4165).