error in connecting to mysql using C program

view full story

http://ubuntuforums.org – Hi all I am trying to access mysql through a c program, bt am stuck with a specific error. I have searched the net for solutions, but nothin helped Code: Code: /* Simple C program that connects to MySQL Database server*/ #include <mysql.h> #include <stdio.h> main() {   MYSQL *conn;   MYSQL_RES *res;   MYSQL_ROW row;   char *server = "localhost";   char *user = "root";   //set the password for mysql server here   char *password = ""; /* set me first */   char *database = "mysql&q (Hardware)