visual studio 2010-vs2010用C语言为什么连接不上mysql
程序员文章站
2022-05-13 22:31:42
...
mysqlvisual studio 2010c语言
MYSQL *mysql;mysql=mysql_init(NULL);if(!mysql_real_connect(mysql,"localhost","root","0412qwer","xs",3306,NULL,0)) AfxMessageBox(_T("数据库连接失败"));else{AfxMessageBox(_T("数据库连接成功"));}