Hello guys,
I managed to compile succesfully my C program but now when I run it I get
something like the following
---
TEST1
Failed in SELECT , Error: You have an error in your SQL syntax near ')' at
line 1
What I want to ask , I have to do
clude
file to use myself.
Regards,
Nicu
Paul DuBois wrote:
> At 8:46 PM -0400 5/26/01, Nicu Popovici wrote:
> >Hello Sinisa,
> >
> > I managed to get a connection to a database but now when I want to
> >try to make a query on that
> >database I have to use
`_VARARGS'
/usr/include/mysql/m_string.h:174: parse error before `_VARARGS'
/usr/include/mysql/m_string.h:209: parse error before `value'
/usr/include/mysql/m_string.h:93: warning: array `_dig_vec' assumed to have one element
Maybe you have some ide
Milivojevic wrote:
> Nicu Popovici writes:
> > > Hi Sinisa,
> >
> > You are right , I did a select * from user and the host field is indeed
>localhost. How
> > can I update that field , and I do not have a host table. Should I modify anly
>this
> > table or
p a new user on the test database and I want to connect to that database from
ares.main.ro ?
Thanks you for your time,
Regards,
Nicu
> Nicu Popovici writes:
> > Hello Gurus,
> >
> > I managed to compile and link my sample file substituting mysql_init() with
> > my
Hello Gurus,
I managed to compile and link my sample file substituting mysql_init() with
my_init() and mysql_real_connect() to mysql_connect(). I get now the following error
--
Failed to connect to database! Error jHost 'ares.main.ro' is not allowed to connect
to this MySQL
Hi Sinisa,
I looked on the symbols from libmysqlclient.a and indeed there is no mysql_init or
mysql_real_connect there .
There are mysql_kill and some other functions but the first two there are not.
Regards,
Nicu
Sinisa Milivojevic wrote:
> Nicu Popovici writes:
> > H
;mysql);
if (!mysql_real_connect(&mysql, "host","user","passwd","rt",0,NULL, 0) )
printf("Failed to connect to database! Error %s ",
mysql_error(&mysql));
mysql_close(&mysql);
return 0;
}
-----
Wha
that it
encounters in my file.
I guess that is something with mysql shared libraries !!
Regards,
Nicu
Eric Fitzgerald wrote:
> Does your Bug_Report.c have an #include line for the mysql headers?
> - Original Message -
> From: "Nicu Popovici" <[EMAIL PROTECTED]>
Hello Gurus,
I am trying to write a C client for a mysql server and I compile the
example with the following line
gcc -g Bug_Report.c -o test.o
-I/usr/include/mysql -L/usr/lib/mysql
-lmysqlclient -lnsl -lsocket
but I get the following linking errors
/home/nicu/QA/Bug_Report.c:7: undefined re
10 matches
Mail list logo