通过C ++连接到mysql [英] connecting to mysql via C++
本文介绍了通过C ++连接到mysql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要您的帮助才能通过C ++连接到MySql数据库.
我下载了xammp,它工作正常.我在xammp下有mysql库等.
我可以通过php代码轻松访问数据库.
我尝试使用C ++,并在C ++代码中有:
Hi,
I need your help for connecting to MySql database via C++.
I downloaded xammp, it is working properly. I have mysql libraries, etc. under xammp.
i can easily reach to the database via php code.
i try to use c++ and in c++ code i have:
#include "my_global.h"
#include "mysql.h"
但是,当我尝试为此目的使用C ++时,出现错误:
But when i try to use C++ for this purpose i have the error:
Cannot open include file: ''mysql.h'': No such file or directory<br />
Cannot open include file: ''my_global.h'': No such file or directory<br />
但是,我可以在mysql include目录下看到这些文件.
有什么帮助吗?
谢谢...
However, i can see those files under mysql include directory.
Any help please?
Thanks...
推荐答案
希望此链接能给您一个想法
http://forums.mysql.com/read.php?45,49606,49606# msg-49606 [ ^ ]
谢谢
Hi,
Hope this link will give you an idea
http://forums.mysql.com/read.php?45,49606,49606#msg-49606[^]
Thanks
这篇关于通过C ++连接到mysql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文