Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to access mysql database using C

How to access mysql database using C

Scheduled Pinned Locked Moved C / C++ / MFC
databasemysqllinuxjsontutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    samhita
    wrote on last edited by
    #1

    i want to access mysql database using C , i read the documentation which is there on mysql site , but where to get the required files like mysql.h and ,lib files. My MySql database is on linux machine and i want to access it from Windows machine. My program which is accessig the mysql data is written in c and is on Windows platform.I have already installed the required mysql driver, but to use the mysql API's i require mysql.h file . Do i require any other files for that, if so please let me this in detail. Suvarna

    F 1 Reply Last reply
    0
    • S samhita

      i want to access mysql database using C , i read the documentation which is there on mysql site , but where to get the required files like mysql.h and ,lib files. My MySql database is on linux machine and i want to access it from Windows machine. My program which is accessig the mysql data is written in c and is on Windows platform.I have already installed the required mysql driver, but to use the mysql API's i require mysql.h file . Do i require any other files for that, if so please let me this in detail. Suvarna

      F Offline
      F Offline
      Florin Ochiana
      wrote on last edited by
      #2

      You can access mysql through ODBC and you wont need the mysql.h file. You find the mysql odbc in the mysql site. Install it on your windows machine and then make a connector in the windows odbc. Then you connect to the linux mysql from you program through the odbc connector. ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups