Build C++ application linked to libmysqlclient and libtensorflow_framework crash when run

OS: Centos7
compiler: gcc9
tensorflow-2.6
mysql-8

stack dump [3] /usr/local/tensorflow/lib/libtensorflow_framework.so.2 : bssl::tls_flush_pending_hs_data(ssl_st*)+0xc [0x7f38c02899dc]
stack dump [4] /usr/local/tensorflow/lib/libtensorflow_framework.so.2+0xde1a26 [0x7f38c02b1a26]
stack dump [5] /usr/lib64/mysql/libmysqlclient.so.21+0x8bd24 [0x7f38bda36d24]
stack dump [6] /usr/lib64/mysql/libmysqlclient.so.21+0x8c670 [0x7f38bda37670]
stack dump [7] /usr/lib64/mysql/libmysqlclient.so.21+0x37e52 [0x7f38bd9e2e52]
stack dump [8] /usr/lib64/mysql/libmysqlclient.so.21+0x3820a [0x7f38bd9e320a]
stack dump [9] /usr/lib64/mysql/libmysqlclient.so.21mysql_real_connect+0xa9 [0x7f38bd9e78b9]

I have the same problem, do you have the solution?