specifying a custom port for a MySQL database connection

Chris Sheffield cmsheffield at gmail.com
Wed Nov 15 16:48:19 EST 2006


Yes! Perfect. Thank you. Apparently the docs need to be updated. Or  
maybe the syntax it shows is the syntax for some other database?

Chris


On Nov 15, 2006, at 2:44 PM, John Craig wrote:

> I had the same problem a while back - some kind person on the list  
> came up with the answer - so here it is regurgitated!
>
> The correct syntax is;
> put revOpenDatabase("MySQL", dbHost, dbName, dbUser, dbPass,  
> dbPort) into db
>
> HTH
>
> JC
>
> Chris Sheffield wrote:
>> Hi all,
>>
>> I'm having a problem. Using the revOpenDatabase function, the docs  
>> say that you can specify a port number by specifying the host,  
>> followed by a colon, followed by the port number. So something  
>> like "localhost:3306". Is this correct? Because I've tried it and  
>> I get an error "Unknown MySQL server host 'localhost:3306' (1)".
>>
>> Has anyone used this and made it work? I need to figure out a  
>> solution for this asap.
>>
>> Thanks,
>> Chris
>>
>>
>>
>> ------------------------------------------
>> Chris Sheffield
>> Read Naturally
>> The Fluency Company
>> http://www.readnaturally.com
>> ------------------------------------------
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list