image
image

|


Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old October 13th, 2006, 12:16 PM
Registered User
 
Join Date: Jan 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Alerus is on a distinguished road
MAMP mysql and C++

So, after nearly drilling a screwing through my head attempting to get mysql to install, I stumbled across MAMP. All I had to do was copy it into the Applications folder and it works! I can access its version of mysql, add databases, tables etc..


Great. Now though I would like to be able to interface with the MAMP mysql server through my own c++ code. On the mysql webpage they have a link to mysql++ libraries. Much like everything mysql related I can't seem to get that to install either. Even if I do though, is there something specific I need to do to make code using it talk to the mysql server located in the MAMP folder and not have it searching for something /usr/local?

Pretty much I'm wondering if there is some tutorial I can find that shows me how to install and set up code libraries so that I can write c++ code that talks to my MAMP mysql database.


Any help would be immensely appreciated. Thanks.
Reply With Quote
  #2  
Old October 18th, 2006, 01:14 AM
ScottW's Avatar
Founder
 
Join Date: Sep 2000
Location: Overland Park, KS
Posts: 3,164
Thanks: 0
Thanked 5 Times in 2 Posts
ScottW is on a distinguished road
I use MAMP, but I am not C++ friendly. The MAMP MySQL and PORT settings are all defined in your MAMP configuration, which you can see when you launch MAMP. I believe it is like 8888 or something like that. When you connect to the mysql server you can just target your local machines IP address and port number, unless you taking advantage of the sock file, of which case then you wouldn't have to make any specifications.

Don't think of MAMP as MAMP, just think of it as a MySQL install. That said, MAMP is based off LAMP - Linux Apache MySQL PHP, or MAMP - Mac Apache MySQL PHP. It probably won't have the C++ libraries installed.

If your having trouble installing things, look at using FINK. (http://fink.sourceforge.net/). It will allow you to easily install many packages, including mysql from the command line and add those additional libraries that you need and you can toss MAMP in the trash.
Reply With Quote
  #3  
Old October 27th, 2006, 10:50 PM
Registered User
 
Join Date: Jan 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Alerus is on a distinguished road
Thanks for your help. I've tried Fink before and still have problems with it so I'm not sure. At the moment I've made a work aroudn so I don't need to use the C++ connection, but I'll check into more later. Thanks again!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL 4.x and MySQL 5 both on same server jeephp Software Programming & Web Scripting 1 April 30th, 2006 08:47 AM
Mysql 5.0.11 And Mysql Administrator saqibsaleem Networking & Compatibility 1 August 17th, 2005 08:33 AM
MAMP and PHP-NUKE wuk Design & Media 0 January 6th, 2005 03:26 PM
mysql dead (mysql.sock missing) kzo Mac OS X System & Mac Software 8 March 27th, 2002 06:42 PM
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) vic Mac OS X System & Mac Software 16 August 9th, 2001 03:56 PM


All times are GMT -5. The time now is 12:36 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.