#include <QtCore/QCoreApplication>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
#include <mysql.h>
int main(int argc, char *argv[])
{
MYSQL mysql;
mysql_init(&mysql);
if(!mysql_real_connect(&mysql, "localhost", "root", "zrsyed15967", "test", 3306,NULL,CLIENT_MULTI_STATEMENTS)) {
printf("%s\n", mysql_error(&mysql));
return 1;
}
return a.exec();
}
#include <QtCore/QCoreApplication>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
#include <mysql.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
MYSQL mysql;
mysql_init(&mysql);
if(!mysql_real_connect(&mysql, "localhost", "root", "zrsyed15967", "test", 3306,NULL,CLIENT_MULTI_STATEMENTS)) {
printf("%s\n", mysql_error(&mysql));
return 1;
}
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks