Home > database >  MySQL database connector c link problems.
MySQL database connector c link problems.

Time:09-28

To copy a copy of the test code on the net, but the link database segmentation fault happens,
Conn=driver - & gt; The connect (DBHOST, USER, PASSWORD);
Is my database configuration is wrong or have any other questions?
In addition, extracts the connector after the c + + include and lib directory file is copied to/usr/local/include and/usr/local/lib run ldconfig command times wrong:
/sbin/ldconfig. Real:/usr/local/lib/libmysqlcppconn. So. 7 is not a symbolic link

CodePudding user response:

The corresponding so file to replicate the past, too

CodePudding user response:

Lib directory of all the files have been copied in the past
  • Related