Re: smysl bundled
Re: smysl bundled
- Subject: Re: smysl bundled
- From: Joakim Danielson <email@hidden>
- Date: Sun, 23 May 2004 12:38:59 +0200
Hello
I think localhost in initToHost should be all lowercase. I'm also
pretty sure that you must supply a username and password, so your code
should look something like this:
theConnec = [[MCPConnection alloc] initToHost:@"localhost"
withLogin:@"someuser" password:@"somepassword" usingPort:0];.
Joakim
On 2004-05-22, at 18.50, DANIEL SPARTACUS wrote:
is there any have try to connected smsysql framework
to mac ox 10,3 aand mysql 4,018
my code is this one and had nerver connection
the connection sais that j connected but where that the problhme
if j use a ava connection it's ok
my conection must bee local
if any body a idea help me
@implementation maConnexion
// initialisateur
- (id)init
{
self = [super init];
if (self)
{
//mySQLConnection=[[MCPConnection alloc]init];
theConnec = [[MCPConnection alloc] initToHost:@"localHost"
withLogin:@""
password:@"" usingPort:0];
////[theConnec selectDB:@"test"];
//MCPConnection * theConnec=[MCPConnection alloc];
MCPResult *theRes;
// theConnec = [theConnec initToHost:@"localHost" withLogin:@""
password:@"" usingPort:0];
if (isConnected)
{
//[theConnec selectDB:@"test"];
theRes=[theConnec queryString:@"select libelle from produit"] ;
//theResult=[[theRes fetchFieldsName] retain];
}
}
return self;
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >smysl bundled (From: DANIEL SPARTACUS <email@hidden>) |