How to access MySQL from multiple threads concurrently

后端 未结 4 1769
悲哀的现实
悲哀的现实 2020-12-02 10:25

We\'re doing a small benchmark of MySQL where we want to see how it performs for our data.

Part of that test is to see how it works when multiple concurrent threads

4条回答
  •  一个人的身影
    2020-12-02 10:39

    MySQL Threaded Clients in C

    It states that mysql_real_connect() is not thread safe by default. The client library needs to be compiled for threaded access.

提交回复
热议问题