[Mysql-cocoa-users] MySQL on MacOS X
Brought to you by:
sergecohen
|
From: Serge C. <co...@em...> - 2002-11-29 13:35:08
|
Hi Robert, I think it's really the time to go on the mailing list of mysql-cocoa... I've not at all tested the framework (nor NySQL) on Jaguar, but some=20 people on the list did. I'm sure they would answer you better than I = can. What I can tell you is no more than that is in the doc on the project=20 web page (http://mysql-cocoa.sf.net). There is also a couple of resources one can use: - http://www.entropy.ch/software/macosx/welcome.html (good one, get=20 binary, and some explanation to compile yourself -if still the same-) - http://developer.apple.com/internet/macosx/osdb.html (a very=20 comprehensive guide to MySQL installation on OS X... from Apple, that=20 should make a standard at some point) and I'm sure you can still find some more on google. By now I'm wondering if what your question is, is how to get libmysqld ?=20= (the embedded server as they call it at MySQL)? The guidelines from the resources I pointed you to should be enough. Be=20= just careful to use mysql4 (libmysqld does not exist in previous=20 versions). If you have specific problems when building the library (which is not=20 solved by these resources), I'll be happy to provide more help. Serge. PS: If you want to use libmysqld, you should be able to use the=20 framework for nearly everything, except starting the server thread (and=20= killing it), with very little modifications (mostly, modification to the=20= target, linking it to the static libmysqld instead of the sources of=20 libmysqlclient). In this case be carefull to add -fno-common during the=20= compilation of the library, and add libz to the library to link the=20 framework with (I'm afraid of being a bit criptic, but you should=20 decipher it while starting "playing" with installation of mysql and the=20= framework). Le vendredi 29 novembre 2002, =E0 01:28 , Robert Cerny a =E9crit : > Hi, > unfortunately, yes, it's an answer I didn't want to hear but it's=20 > addressing my question. It looks like I will need to work with = libmysql=20 > library. Btw, it looks like you know about mysql a lot, do you have an=20= > idea how to get libmysql for OS X? > > Thanks > Robert > > On Friday, November 29, 2002, at 01:17 PM, Serge Cohen wrote: > >> I'm afraid there is a missunderstanding... >> >> The SMySQL_fully_embeded version of the framework does not need=20 >> libmysqlclient around (it contains the code of it). STILL it is only=20= >> able to connect to an (existing and runing) MySQL DB server. >> >> In other word, this is not (yet) a version of the framework which=20 >> contains the DB, it is only able to be client of a DB server. This=20 >> version will hopefully come (soon ?), but is not existing so far. >> >> To put it in other words: >> If you want to use MySQL using the SMySQL framework, you need both: >> 1. the SMySQL_fully_embeded version of the framework (in your=20 >> application bundle) >> 2. a running MySQL server (either on same computer or accross = network) >> >> >> Was that your question? >> >> Serge. >> >> >> Le vendredi 29 novembre 2002, =E0 01:01 , Robert Cerny a =E9crit : >> >>> Hi Serge, >>> thanks for your very long email even it didn't answer all my=20 >>> questions. Maybe the libmysqlclient name is a little bit confusing=20= >>> but I would like to be 100% sure I understand it well. >>> Is it possible, using SMySQL_fully_embeded target, create an = internal=20 >>> database inside my application and maintain it? I don't need add=20 >>> records but make some selects and populate them in tableviews... >>> >>> Thanks >>> Robert >>> >>> On Friday, November 29, 2002, at 11:17 AM, Serge Cohen wrote: >>> >>>> Hi, >>>> >>>> I'll post this also to the user mailing list... I think it can be = of=20 >>>> interest for people there as well (and maybe someone over here will=20= >>>> be better at explaining the differences between targets, and more=20= >>>> objective about pros and cons of the framework). >>>> >>>> Let me explain the actual status of the framework: There is 3=20 >>>> targets for the moment : >>>> >>>> 1. SMySQL : This is a framework to be put in one of the=20 >>>> Library/Framework places, and it needs the libmysqlclient.dylib to=20= >>>> work properly. This is interesting mainly for command line tools, = as=20 >>>> such tools cannot be linked with a "bundled" framework. >>>> >>>> For GUI application (anything comming as a bundle) >>>> >>>> 2. SMySQL_embeded, is made to be put in the directory :=20 >>>> @executable_path/../Frameworks (Rem: @executable path is the path=20= >>>> to the real executatble, something like=20 >>>> .../your_app.app/Contents/MacOS/your_app, then the framework is in=20= >>>> directory: .../your_app.app/Contents/Frameworks/SMySQL.framework=20 >>>> -which is a directory as well-). >>>> This is nice because if you distribute a application peoples = doesn't=20 >>>> need to install the framework by them self (it comes bundled within=20= >>>> the application). >>>> The draw back of this target, is that it still needs the=20 >>>> libmysqlclient.dylib (in the proper place, being=20 >>>> /usr/local/lib/mysql/libmysqlclient.dylib). >>>> >>>> 3. SMySQL_fully_embeded : The last solution is something I've done=20= >>>> later to overcome the problem of installing libmysqlclient.dylib: = it=20 >>>> include (staticaly) the libmysqlclient (using slightly modified=20 >>>> sources from mysql 3.23.??? -don't remember anymore, but should be=20= >>>> in the sources-). To use it in an application, you just put it in=20= >>>> the bundle (cf. 2), you DO NOT NEED the system wide=20 >>>> libmysqlclient.dylib required by previous two solutions. >>>> >>>> >>>> Hope this is clear... other wise just bother me about it (please on=20= >>>> the list). >>>> >>>> >>>> Serge. >>>> >>>> PS: Did you managed with CVS? are you using the version 2 = framework? >>>> PPS: In some near future, I'll be directly linking with the static=20= >>>> version of libmysqlclient (whereas for the moment I'm getting the=20= >>>> object files within the project). That mean some one will need the=20= >>>> library (static) on the computer to be able to build SMySQL ("fully=20= >>>> emebeded")... Do anyone see problems from that? >>>> >>>> >>>> Le vendredi 29 novembre 2002, =E0 08:08 , Robert Cerny a =E9crit : >>>> >>>>> Hi, >>>>> thanks again. At first, I'm not very sure about the purpose of = your=20 >>>>> classes. I need to implement some lightweight database mechanism = in=20 >>>>> my ObjC program. I did believe that your framework is exactly what=20= >>>>> I need but after reading tons of emails, web pages etc. I'm not so=20= >>>>> sure now... >>>>> I did build the framework and did install it onto its designed=20 >>>>> place - ~/Library/Frameworks. However I'm sure how to get the=20 >>>>> libmysqlclient.dylib and if I need it at all. >>>>> Could you bring me a little bit of light in it? >>>>> >>>>> Thanks a lot >>>>> Robert >>>>> ---------------------------------------------------- Serge Cohen GPG Key ID: 1024D/69B1D346 ---------------------------------------------------- >>>> >>> >>> >> > > |