api « mysql « C Q&A

Home
C Q&A
1.assembly
2.buffer
3.Card
4.Cast
5.compile
6.console
7.const
8.constructor
9.database
10.Date
11.Debug
12.Design
13.Development
14.DLL
15.encrypt
16.enum
17.eof
18.Event
19.fork
20.Format
21.gcc
22.gdb
23.graph
24.graphics
25.gui
26.Holiday Event
27.image
28.IP
29.iterator
30.macro
31.makefile
32.malloc
33.Menu
34.mysql
35.network
36.openssl
37.operator
38.password
39.pipe
40.preprocessor
41.printf
42.pthread
43.Regular expression
44.scanf
45.semaphore
46.SerialPort
47.server
48.Socket
49.sql
50.SQLserver
51.sscanf
52.std
53.stdin
54.stdout
55.stl
56.strcmp
57.stream
58.switch
59.Template
60.thread
61.timer
62.unix
63.video
64.Virtual
65.visualstudio
66.winapi
67.windows
68.xml
C Q&A » mysql » api 

1. MySQL C API using results    stackoverflow.com

I am using the "MySQL C API" to query the database and I have the results stored in MYSQL_ROW types. I am able to use print the results to the ...

2. mysql_ping() c api fails    stackoverflow.com

connection to mysql is getting lost after 8 hours ( i.e afer wait_timeout varibale times out). i am trying to use mysql_ping() to reconnect to the server but ping gives me ...

3. MySQL C API custom values    stackoverflow.com

I have been working with the tutorial on MySQL C API from http://zetcode.com/tutorials/mysqlcapitutorial/ the following example is working fine:

#include <my_global.h>
#include <mysql.h>

int main(int argc, char **argv)
{

MYSQL *conn;

conn = mysql_init(NULL);
mysql_real_connect(conn, "localhost", ...

4. mySQL C API multiple statements    stackoverflow.com

So I'm building a C program that connects to a mySQL database. Everything worked perfectly. Then, to save on number of queries, I decided that I would like to execute 10 ...

5. mysql server has gone away - can't fix it    stackoverflow.com

I am trying to write a program in C using the MYSQL C API. I have everything working, except recently I have been getting an error when trying to connect ...

6. C API and getting raw socket    stackoverflow.com

I'm writing app that needs to commuicate with mysql. Its a single threaded application that uses epoll linux system call for multiplexing clients, but the problem is that everything stalls whenever ...

7. Help with mysql C API    bytes.com

char t='alpha'; is not valid, in fact I am surprised it compiled without warnings and if it did you should consider switching to a higher warning level on your compiler or getting a new compiler. t is declared as a single character but alpha is a string of 5 characters, however you have surrounded them with ' indicating only a single ...

8. mysql C API with XAMPP?    bytes.com

Select Project Properties/Configuration Properties/Linker/Input. Then on the dialog to the right add you libraries as additional dependencies. This gets the library name added to your project. To set the path to it, select from the TaskBar Tools/Options/Projects and Solutions/VC++ Directories. Then use the drop-down menu for "show directories" to select library files. Then add your path. Visual Studio will search the ...

9. C API for MySQL    cboard.cprogramming.com

Help me please, I am having a problem getting the C API to work with in C. I have tried it with DevC++ as a C program, I have tried it in DJGPP, I have tried it in MingW. First off, to my understanding, C library files are named as follows: libmysqlclient.a. Well in the C API that comes with MYSQL ...

10. mysql API in c    cboard.cprogramming.com

11. C Mysql Api    cboard.cprogramming.com

12. MySQL C Api    cboard.cprogramming.com

Code: #include #include #include int main (int argc, char **argv) { MYSQL *conn; conn = mysql_init (NULL); struct passwd *pwd_ent; #define def_host_name "localhost" /* host to connect to */ #define def_user_name "root" /* user name */ #define def_password "" /* password */ #define def_db_name "history" /* database to use */ if (mysql_real_connect ( conn, /* pointer to connection ...

13. MySQL C API or ODBC?    cboard.cprogramming.com

14. no output with MySQL C API    cboard.cprogramming.com

15. mysql c api problems    cboard.cprogramming.com

16. Need help regarding Mysql 'C' API    forums.devshed.com

Hi, I am creating a server which will accept client request and insert details into mysql database using mysql 'C' API, every new request is process by separate dedicated thread. I am doing following step for database connection. 1. Initialisation using mysql_init() API 2. Database connection using mysql_real_connect() API 3. Doing my task of insertion using mysql_query() API 4. Closing connection ...

17. VS 2002 and mySQL++ API    forums.devshed.com

I found the following article:- Building a Store Application With MySQL++ and C/C++ This article is great, I have spent about 3 days looking for how to use the mySQL++ API and then hit this article. But I have one question. My Problem (Extract from the article):- Once you've downloaded MySQL++, it's extremely easy to include MySQL support into your applications. ...

18. mysql and c api -> STATUS_ACCESS_VIOLATION    forums.devshed.com

I use the folowing technik (see 'MySQL & mSQL' by Randy Jay Yarger, George Reese and Tim King, O'Reilly, wich is a really good startingpoint, on page 199 ff): int main(int argc, char *argv[]) { MYSQL mysql; MYSQL *pConnection; mysql_init(&mysql); pConnection = mysql_real_connect(&mysql, "127.0.0.1", "", "", "test", 0, "/var/lib/mysql/mysql.sock", 0); if(pConnection == NULL) { cout << mysql_error(&mysql) << endl; return -1; ...

19. MySQL API + C    daniweb.com

Compiler: Default compiler Building Makefile: "C:\Users\David\Desktop\Makefile.win" Executing make... make.exe -f "C:\Users\David\Desktop\Makefile.win" all g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" -I"C:/Program Files/MySQL/MySQL Connector C 6.0.2/include" In file included from C:/Program Files/MySQL/MySQL Connector C 6.0.2/include/mysql.h:71, from main.cpp:2: C:/Program Files/MySQL/MySQL Connector C 6.0.2/include/mysql_com.h:268: 'SOCKET ' is used as a type, but is not defined as a type. C:/Program Files/MySQL/MySQL Connector C 6.0.2/include/mysql_com.h:437: ...

20. msql C API    bytes.com

21. c api segmentation fault    weberforums.com

22. mysql c api -> headers and libraries    weberforums.com

23. MySql C API problem on FreeBSD    weberforums.com

I am trying to run this program listed below on a FeeBSD unix server it is giving a a this error message: /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x69): undefined reference to `main' Can anyone please help me that what's wrong with this i am new to both C and MySql !! /* client1.c */ #include #include #define def_host_name NULL /* ...

24. Seg fault on MySQL C API and don't know why    forums.devshed.com

25. C Api and Stored Procedures    forums.devshed.com

Hey all, i've been looking into using stored proecdures, and have got some up and running correctly from the command line, i need to use them from within a c program using the c api. i have the c api set up correctly, and connect to the db and can run queries fine. but if i change my query to calling ...

26. Problem with using MySQL C APIs    forums.devshed.com

Hi! The MySQL C APIs don't seem to work on my system (FC 2 on VmWare). I have installed all the MySQL 4.0 RPM packages I downloaded from www.mysql.com. A brief summary of my code: #include static MYSQL db1; mysql_connect(&db1, "localhost", "user", "pass"); It give the following Compile time error: undefined reference to 'mysql_connect'. I guess the libraries have not ...

27. using the C API, some odd results    forums.devshed.com

The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

28. Using the C API - & Segementation Faults    forums.devshed.com

The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

29. MySQL C API    forums.devshed.com

The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

30. help using the c api for mysql    forums.devshed.com

The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

31. mysql dos c-api    forums.devshed.com

The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

33. MYSQL C API    usenet-forums.com

34. C-Language MySQL API and Dying Processes    usenet-forums.com

35. [Mysql C API] prepared statments    dbforums.com

hi, I've made a prepared statement like "select col1 from tab where col2 = ?" there are no problem in binding parameters and executing the statement. However when I fetch the results, I found that there is nothing fetched (I'm sure that rows that fit the condition exist) and the server returns MYSQL_NO_DATA. I have other prepared statements using INSERT and ...

37. C API Logon problem    dbforums.com

hi, Problem is when i try to connect to the data base using the CAPI functions it always get connected even if password and user name are incorrect. I have restricted the access by deleting the NULL user (delete from user where host ='localhost' and user ='') and added the password to the root. it works fine on the command line ...

38. mysql UNICODE C API    dbforums.com

Hello, I need to convert my application written in C using native access to database (over C API) to UNICODE. As I know from version 4.1 it should be possible. But if I downloaded mysql server, C API looks for me that there is not UNICODE supported. How can I compile that or use that with UNICODE? functions like mysql_query are ...

39. MySQL C API under Win32    dbforums.com

I've read the MySQL documentation about writing thread-safe client applications under Win32. I've also read several posts where people ask why mysql_thread_init and my_thread_init don't seem to be defined (linker error) when compiling against the LIB/DLL under Win32. I still read many people saying that Win32 programmers still have to call the my(sql)_thread_init functions in each thread. However, upon examining the ...

41. Is there any C API for mysqldump    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

42. mysql client libraries for C API    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

43. Problem of mysql client api for C    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

44. mysql C api    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

45. Problem Linking MYSQL C API Library    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

46. Creating triggers by mysql C API    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

47. MySQL C API    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

48. C Api executing Stored Procedures    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

49. C API on 3.23.58 on RedHat 9.0    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

50. c api, running >1 Stored Procedures = dissconnect?    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

51. asynchronous C API (polling the mysql socket fd)    forums.mysql.com

4 October 2011 - In light of a recent security incident, customers are advised to update their antivirus definitions and run a full antivirus scan on all computers that accessed the MySQL site between September 20th, 2011 and September 28th, 2011. Also, out of an abundance of caution, we advise MySQL account holders to then change their MySQL account passwords.

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.