Livecode Server MySQL socket
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 10
- Joined: Mon Dec 05, 2011 5:33 pm
Livecode Server MySQL socket
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
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.
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.
-
- Posts: 10
- Joined: Mon Dec 05, 2011 5:33 pm
Re: Livecode Server MySQL socket
Thanks, that works