473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Retrieving data from a MySQL database

Is it possible to grab data from a MySQL database and print it on the screen
with VC++? The database is on a linux server if that would make any
difference.
Nov 16 '05 #1
4 2025
In broad sense, grabbing data from MySQL is not much different than grabbing
data from another RDBMS. I found some client libraries on MySQL site which
take care of communication between VC++ and the remore mySQL database. Check
the developer tools at the MySQL web site for more information.

"Bryan Powell" <br***@metabahn.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Is it possible to grab data from a MySQL database and print it on the screen with VC++? The database is on a linux server if that would make any
difference.

Nov 16 '05 #2
I do remember that they had a C API which allowed to to directly access the
MySQL DB server and do what you wanted. Also vagueley remember a C++ wrapper
they provided for the C API. Alternatively they also provided something
called MyODBC which was a set of ODBC drivers for MySQL. The easiest way to
make sure if all this still exists, would be to check out their web site

--
Regards,
Nish [VC++ MVP]

"Bryan Powell" <br***@metabahn.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Is it possible to grab data from a MySQL database and print it on the screen with VC++? The database is on a linux server if that would make any
difference.

Nov 16 '05 #3
I do remember that they had a C API which allowed to to directly access the
MySQL DB server and do what you wanted. Also vagueley remember a C++ wrapper
they provided for the C API. Alternatively they also provided something
called MyODBC which was a set of ODBC drivers for MySQL. The easiest way to
make sure if all this still exists, would be to check out their web site

--
Regards,
Nish [VC++ MVP]

"Bryan Powell" <br***@metabahn.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Is it possible to grab data from a MySQL database and print it on the screen with VC++? The database is on a linux server if that would make any
difference.

Nov 16 '05 #4
FJM
"Bryan Powell" <br***@metabahn.com> wrote in message
news:ec**************@TK2MSFTNGP12.phx.gbl...
Is it possible to grab data from a MySQL database and print it on the screen with VC++? The database is on a linux server if that would make any
difference.


Grab MyODBC from their website and just use the standard
CDatabase/CRecordset classes would be the easiest.
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Josep | last post by:
Hi, I'd like to poll a database and get the table contents, as well as the field names from that table. I've been to php.net but this time I cannot find something helpful. I can get the data,...
5
by: Bob Kaku | last post by:
I've created a MySQL database to store a large amount of text. Since the text data type in MySQL is limited to 255 characters, I added a BLOB column. I created an PHP input screen to enter the...
1
by: evetommy | last post by:
Hi all, I'm trying to retrieve fields from my database with following mysql statement: $query = SELECT g_games.Title FROM g_collections, g_personal_reviews, g_games WHERE...
0
by: Stormblade | last post by:
Hey all, I have an existing JSP web application which retrieved data from a SQLServer database and displayed it. The data contained Unicode chars. This worked fine. I changed databases/JDBC...
10
by: Krakatioison | last post by:
Hi everyone, can someone point me to download of an example for saving and retrieving to/from MYSQL database. Or did anyone of you tried this and could share your code with me. I've got some data...
2
by: pmz | last post by:
Dear Group, I'm connecting in C# with remote (BSD) MySQL server with ODBC Driver, and I'm trying to find the best sollution in such problem: As I've read on MySQL manual, they have suggested...
9
by: Larry | last post by:
OK, I've been searching around the net for numerous hours and seem to just be getting more confused about handling special characters. In my host's configuration MagicQuotes is ON. (I understand...
2
by: gophersounds | last post by:
When I run this simple program I am not getting any data back. The program creates a database, creates a table, populates the table with some data, and then tries to read the data. However, no...
2
by: shivapadma | last post by:
i have inserted the image into database using the following code String driverName = "com.mysql.jdbc.Driver"; String url = "jdbc:mysql://localhost:3306/"; String dbName =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.