Home > Back-end >  Mysql_real_connect slow connection (about 3 seconds)
Mysql_real_connect slow connection (about 3 seconds)

Time:12-01

Mysql_real_connect I use c language interface to connect to the database, you need to wait for about three seconds, the connection is successful),

Colleagues in python code, almost without any delay,

Baidu, I didn't find someone meet the same problem with me,

Which expert can instruct me?

CodePudding user response:

You two are the same MySQL version? Some MySQL version is slow connection

CodePudding user response:

Links to the local database or a remote database?

CodePudding user response:

Connect to the same server

The
reference 1/f, Simple, Soft reply:
you two MySQL version? Some MySQL version is slow connection

CodePudding user response:

refer to the second floor bath _ fire phoenix reply:
link to the local database or a remote database?
local and remote, are all the same
  • Related