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. connecting to a remote mysql database from an mfc application

connecting to a remote mysql database from an mfc application

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasemysqlcomtutorial
3 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.
  • _ Offline
    _ Offline
    _kane_
    wrote on last edited by
    #1

    hi can anyone point me to the right tutorials or give me a snippet of code to connect to a remote mysql database from an MFC application using ODBC or MySql++ or whatever ? i have checked the tutorials section and found one tutorial that compiled..but it works only for localhost :( Thanks. Kane http://www.coderkane.com[^] "Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"

    T 1 Reply Last reply
    0
    • _ _kane_

      hi can anyone point me to the right tutorials or give me a snippet of code to connect to a remote mysql database from an MFC application using ODBC or MySql++ or whatever ? i have checked the tutorials section and found one tutorial that compiled..but it works only for localhost :( Thanks. Kane http://www.coderkane.com[^] "Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"

      T Offline
      T Offline
      Tareq Ahmed Siraj
      wrote on last edited by
      #2

      For remote connections, i think you need to add your remote ip to the mysql database table (dont exactly remember which one... check the manual). If it worked for localhost, it should also work for remote host after you have the permission for the remote ip. Hope this helps. - tareq

      _ 1 Reply Last reply
      0
      • T Tareq Ahmed Siraj

        For remote connections, i think you need to add your remote ip to the mysql database table (dont exactly remember which one... check the manual). If it worked for localhost, it should also work for remote host after you have the permission for the remote ip. Hope this helps. - tareq

        _ Offline
        _ Offline
        _kane_
        wrote on last edited by
        #3

        yes it does..it works fine now...thankx tareq ! -kane http://www.coderkane.com "Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"

        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