Page 1 of 1

Livecode Server MySQL socket

Posted: Tue Nov 13, 2012 3:13 pm
by elijahlowGA1b54
The default MySQL socket using livecode server is /tmp/mysql.sock however my server runs mysql socket at /var/run/mysqld/mysqld.sock. How do i change Livecode server to point to /var/run/mysqld/mysqld.sock ?

Re: Livecode Server MySQL socket

Posted: Tue Nov 13, 2012 3:53 pm
by sturgis
From the examples in revOpenDatabase

get revOpenDatabase("mysql", "localhost", "dbName", myUsr, myPass, false, "/var/mysql.sock", 1, true) -- change "/var/mysql.sock" to point to whatever location.


Also shows this..

socket - (MySQL Only) A string specifying the socket or named pipe the driver should use to connect with. If empty, the default for the host will be used.

Re: Livecode Server MySQL socket

Posted: Tue Nov 13, 2012 4:37 pm
by elijahlowGA1b54
Thanks, that works :D