Home > Database > Mysql Tutorial > visual studio 2010-vs2010用C语言为什么连接不上mysql

visual studio 2010-vs2010用C语言为什么连接不上mysql

WBOY
Release: 2016-06-06 09:35:07
Original
1328 people have browsed it

mysqlvisual studio 2010c语言

<code>MYSQL *mysql;mysql=mysql_init(NULL);if(!mysql_real_connect(mysql,"localhost","root","0412qwer","xs",3306,NULL,0)) AfxMessageBox(_T("数据库连接失败"));else{AfxMessageBox(_T("数据库连接成功"));}</code>
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template