Thread: MYSQL++ Header Question

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    193

    Question MYSQL++ Header Question

    I downloaded and unzipped this file:

    http://dev.mysql.com/get/Downloads/m...rors.pair.com/

    After I unzipped it and opened up the folder, I noticed that every file didn't have an extension except for a few. I opened up the README file and it really made no sense to me. So what I'm getting at is that I don't know how to install the MYSQL++ header files. I want to maintain my site's database through a program and after searching around I found out that I needed MYSQL++. Does anyone know how to install this? Any help is greatly appreciated.

    P.S. If it matter, my compiler is Dec-C++ 4.0. I've tried newer version, but when I compile my program it gives me the same error so I am using this version and it's working.

  2. #2
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    I am now using Dev-C++ 4.9.9.0. If that makes any difference. I would still like to install MYSQL++. Any help would be greatly appreciated even if you say "I don't know how to do it either".

  3. #3
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Can you attach the README?
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    are you trying to install the database server or client files?

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    I'm not sure what you mean. All I want to do is to modify my site's database from a program. I know how to do it in PHP and have made a PHP file that I can access my site's database. I want to make one with C++.

    Here is the "README" file:

  6. #6
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    From documentation
    After running configure, run make and make install. Libs will be
    installed in prefix/lib and include files in prefix/include/mysql++.
    I know how to do that in Linux; however, I don't know how to perform that in Windows.
    *just guessing not knowing for sure*, to make available for Dev you just add that directory to the list of includes and libraries, set it through Dev options/setting
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    I haven't even done this because I don't know how:

    After running configure, run make and make install.

    The only file with an extension (besides the "README" file) is configure.h which doesn't do anything. I'm stuck on the first instruction: You should cd to the root of source directory and run. What does that mean? "cd"? "source" directory (it doesn't exist)? "automake" "autoconf" files don't exist. I'm all confused. Is the version I downloaded for Linux?

  8. #8
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    5 bucks says you tried to download the server software and not the connection headers and libraries.

    If you want to do it in C++ try getting the MySQL++ from http://tangentsoft.net/mysql++/
    or just use the C API that comes with it, information can be found here http://dev.mysql.com/doc/mysql/en/C.html

    Though from this thread I don't think you are advanced enough to handle it.

  9. #9
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    *again my explanation below is not trustworthy, where's everybody??*

    The instruction on that README is for linux and once the installation is done the library will be available when you compile with gcc.

    From README
    You should cd to the root of source directory and run :
    Recommended building of library and examples is the following one:
    automake
    autoconf
    ./configure --with-options-of-your-choice
    make
    make install
    Above is should be perfomed on linux shell command (command line)
    so to cd to the source is to go to the directory where you unpack the files. Once you're inside that directory, just enter the next command: automake, something then happens, and so one.


    *gee, I know some people here will have better/more accurate answer/solution for you, but yeah...that's my speculation*
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  10. #10
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Quote Originally Posted by Thantos
    Though from this thread I don't think you are advanced enough to handle it.
    Handle what? His sole trouble right now is how provide DevC++ with the library. He's done database with PHP before as he said.
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  11. #11
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    Quote Originally Posted by Thantos
    5 bucks says you tried to download the server software and not the connection headers and libraries.

    If you want to do it in C++ try getting the MySQL++ from http://tangentsoft.net/mysql++/
    or just use the C API that comes with it, information can be found here http://dev.mysql.com/doc/mysql/en/C.html

    Though from this thread I don't think you are advanced enough to handle it.
    Thanks for directing me toward the correct file and I know MYSQL++ might be a little advanced for me, but I'd like challenges and I want to see if I can handle it.

    Quote Originally Posted by alphaoide
    Handle what? His sole trouble right now is how provide DevC++ with the library. He's done database with PHP before as he said.
    Exactly. I know where I can learn to code with database and have found quite a few tutorials but they all have a <mysql> header file and I noticed that you have to download it and I have no clue on how to install it. I think I keep download Linux versions and I have Windows XP so nothing makes sense.

  12. #12
    Registered User
    Join Date
    May 2004
    Posts
    164
    Thantos, you changed your icon dude. I always respect the forces, especially marines... But your knowledge is the key point dude, and you've helped me alot of times, so as far as I am concerned, any icon works!

  13. #13
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    Quote Originally Posted by WaterNut
    Thantos, you changed your icon dude. I always respect the forces, especially marines... But your knowledge is the key point dude, and you've helped me alot of times, so as far as I am concerned, any icon works!
    Just wondering, but what does that have to do with MYSQL++. I'd really like to have the ability to access a database from a program instead of through PHP/Internet.

  14. #14
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    I have MySQL, but not MYSQL++ (which I prefer to have). I downloaded MySQL.DevPak and when I ran it, it created the MySQL Header Files. I think it's only for C, but I could be wrong. Does anyone else know what I may have downloaded?:

    http://public.planetmirror.com/pub/devcpp/ (scroll down to MySQL.DevPak)

    It took me about 3 hours of searching on google before I finally found this. I searched for MYSQL for Dev-cpp and found this site. Is this the official MYSQL Header Files FOR C++? Any help is greatly appreciated.

  15. #15
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    >> I downloaded MySQL.DevPak and when I ran it, it created the MySQL Header Files. I think it's only for C, but I could be wrong. Does anyone else know what I may have downloaded?
    Why don't you try it on your program and see what happens?

    >> Is this the official MYSQL Header Files FOR C++? Any help is greatly appreciated.
    The official one for sure is the one pointed out by Thantos because that download page is linked by www.mysql.com

    I think it's time for you to join their mailing lis http://lists.mysql.com/plusplus
    You'd probably do search first just in case your question already asked
    Sorry we failed you but good luck over there
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MySQL C API Header File Problems
    By WarrenKeyes3 in forum C Programming
    Replies: 3
    Last Post: 03-26-2009, 02:26 PM
  2. Linux header question
    By invisibleghost in forum Linux Programming
    Replies: 5
    Last Post: 02-17-2005, 10:03 AM
  3. C header file question?
    By correlcj in forum C Programming
    Replies: 3
    Last Post: 08-13-2002, 07:59 AM
  4. header file question
    By unanimous in forum C Programming
    Replies: 1
    Last Post: 12-15-2001, 08:15 PM