VS2013 c Add Connection mysql Add libmysql.dll to Source File Report Error, Not Add Also Report Error! What should I do?

  mysql, question

main.cpp

#include "sqlConnection.h"
 #include <iostream>
 int main(){
 sqlConnection *sqlC = new sqlConnection();
 sqlC->ifSucceed();
 bracket

sqlConnection.h

#include <Windows.h>
 #include <stdio.h>
 #include <winsock.h>
 #include "mysql.h"
 #include <iostream>
 #pragma once
 
 using namespace std;
 
 class sqlConnection
 bracket
 public:
 sqlConnection();
 ~sqlConnection();
 void ifSucceed();
 MYSQL mysql;
 MYSQL_RES *result;
 MYSQL_ROW row;
 };

sqlConnection.cpp

#include "sqlConnection.h"

sqlConnection::sqlConnection()
{
    mysql_init(&mysql);
    mysql_real_connect(&mysql, "567aaffa1a70e.sh.cdb.myqcloud.com", "cb_outerroot", "cppw123", "librarySys", 7726, NULL, 0);    
}

void sqlConnection::ifSucceed(){
    char *sql = "select * from tb_bookcase";
    mysql_query(&mysql, sql);
    result = mysql_store_result(&mysql);
    if ((row = mysql_fetch_row(result)) != NULL){
    cout << "succeed!" << endl;
}else{
     cout << "faiiiiiiiiled" << endl;
 }
}
sqlConnection::~sqlConnection()
{
}

There are libmysql.dll error messages as follows:
There is an unhandled exception at 0x00007ffed00441e6 (libmysql.dll) (in librarySys.exe): 0xC0000005: an access violation occurred while reading position 0x0000000000000010.
Then I was forced to interrupt. At present vs gave me an option to change the existing PDB and binary search path and try again. However, I am only a beginner and really do not understand it.

If the libmysql.dll file is deleted, the error message is:
This program cannot be started because libmysql.dll is missing from the computer. Try reinstalling the program to resolve the problem.

I am really confused and helpless. I really don’t know how to correct this bug.
By the way, I have tried many ways to connect to mysql in vs2013, and every time I make a strange mistake. Pray for the rescue of the great god! Please let me know if anyone has a good way to connect mysql!

Download the correct version of libmysql.dll
It may be that this dependent libmysql.dll is in conflict with your other libraries.