MySQLC连接器库。我从mysql-connector-c-6.0.2-win32.msi下载了和mysql-connector-c-6.0.2-win32-vs2005.msi,但是这两个安装程序都退出了:
我还尝试将C:\Program Files\MySQL\MySQL Server 5.1\lib\debug\libmysql.dll复制到C:\Ruby193\bin,但它也没有解决MySQ
++$ g++ test.c -I/usr/include/mysql -I/usr/include/mysql++test.c: In function ‘int main()’:test.c:(.text+0xf): undefined reference to `mysql_init'
test.c:(
/Ruby24-x64/lib/ruby/gems/2.4.0/gems/mysql2-0.4.10-x64-mingw32/lib/mysql2/mysql2.rb:2:in `require': cannotload such file -- mysql2/2.4/mysql2 (LoadError)
from C:/Ruby24
当我使用#include <mysql.h>或#include "mysql.h“时,我无法在C上使用mysql。每次我尝试运行这个程序,我都会得到一个致命的错误。我将这些作为链接设置来添加sql库: C:\Program \MySQL\Connector C++ 8.0\libmysqlclient.so C:\Program \MySQL\mySQLServer8.0这也是我的搜索目录: C
我在C++中尝试运行一个使用MySQL连接器的编译程序时遇到了一些问题。它编译得很好,但是当运行它时,它会立即崩溃--看起来就像是在连接的那一行上。main() Line 24 C++第24行是:
con = driver->connect("tcp://127.0.0.1:3306", "sepples_su", "
当我试图用C编译一个包含mysql库的自写项目时,我得到了这个错误:src/oDAO.c:4:23: fatal error: my_global.h: No suchfile or directory#include <my_global.h>
出现这个错误是因为我的系统将头文件复制到/usr/include/mysql/